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:
1 parent
3a95375ae7
commit
ecb4889dd3
10 files changed
+173
-118
No files matched your search
@@ -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