Beispiel #1
0
        public IActionResult Checkout([Microsoft.AspNetCore.Mvc.FromBody] IEnumerable <UpdateRentalPeriodItemDto> items)
        {
            var cart = CartRepo.Get();

            RefreshCart(items, cart);
            OrdersRepository.Checkout(cart);
            CartRepo.Clear();
            return(new OkResult());
        }