public async Task <Basket> AddItem(Basket basket, string description, int quantity = 1) { await _apiItemProxy.AddItem(basket.Id, description, quantity); return(await _apiBasketProxy.GetBasket(basket.Id)); }
public async Task <Basket> UpdateItem(Basket basket, Guid id, int quantity) { await _apiItemProxy.UpdateItem(basket.Id, id, quantity); return(await _apiBasketProxy.GetBasket(basket.Id)); }
public async Task <Basket> Clear(Basket basket) { await _apiItemProxy.ClearItems(basket.Id); return(await _apiBasketProxy.GetBasket(basket.Id)); }