Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public async Task <Basket> UpdateItem(Basket basket, Guid id, int quantity)
        {
            await _apiItemProxy.UpdateItem(basket.Id, id, quantity);

            return(await _apiBasketProxy.GetBasket(basket.Id));
        }
Esempio n. 3
0
        public async Task <Basket> Clear(Basket basket)
        {
            await _apiItemProxy.ClearItems(basket.Id);

            return(await _apiBasketProxy.GetBasket(basket.Id));
        }