示例#1
0
        public IActionResult Checkout(long cartID)
        {
            Cart    c = shopRepository.GetCart(cartID);
            Booking b = shopRepository.CreateBookingAtCheckout(c);

            return(View());
        }
示例#2
0
        public IActionResult Checkout(long cartID)
        {
            Cart    c = shopRepository.GetCart(cartID);
            Booking b = shopRepository.CreateBookingAtCheckout(c);

            BookingsSelection bs = new BookingsSelection()
            {
                DateOfBooking = c.DateOfBooking
            };

            return(RedirectToAction(nameof(Index), bs));
        }