Basket persistence (#41)
* Renamed Cart to Basket throughout * Implemented cookie-based anonymous basket handling and transfer to user upon login. Still need to implement transfer upon registration.
This commit is contained in:
@@ -5,12 +5,9 @@ namespace ApplicationCore.Interfaces
|
||||
{
|
||||
public interface IBasketService
|
||||
{
|
||||
Task<BasketViewModel> GetBasket(int basketId);
|
||||
Task<BasketViewModel> CreateBasket();
|
||||
Task<BasketViewModel> CreateBasketForUser(string userId);
|
||||
|
||||
Task<BasketViewModel> GetOrCreateBasketForUser(string userName);
|
||||
Task TransferBasket(string anonymousId, string userName);
|
||||
Task AddItemToBasket(int basketId, int catalogItemId, decimal price, int quantity);
|
||||
|
||||
Task Checkout(int basketId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user