예제 #1
0
        public async Task <ActionResult <Basket> > AddToBasket([FromBody] BasketItem basketItem)
        {
            var item   = basketItem.ToBasketItemModel();
            var basket = await _basketsRepository.AddToBasketAsync(item);

            return(basket.ToBasketViewModel());
        }