Ejemplo n.º 1
0
        public ActionResult Create(int totalPrice)
        {
            Order newOrder = orderAppService.InsertOrder(User.Identity.GetUserId(), totalPrice);

            var ticketList = ShoppingCartAppService.GetTicketsByUserId(User.Identity.GetUserId());

            orderAppService.TransferTicketsToOrder(newOrder, ticketList);

            return(View("receipt", newOrder));
        }