Exemplo n.º 1
0
        // GET: OrderSummaryCart
        public ActionResult Index()
        {
            OrderSummary thesummary = new OrderSummary();

            thesummary = OrderSummary.GetOrder(this.HttpContext);

            OrderSummaryViewModel vm = new OrderSummaryViewModel()
            {
                OrderItems = thesummary.GetOrderItems()
            };

            return(View(vm));
        }
Exemplo n.º 2
0
        public ActionResult GoToMyTickets()
        {
            //OrderSummary thesummary = new OrderSummary();
            //thesummary = OrderSummary.GetOrder(this.HttpContext);

            OrderSummary ordersOfUser = OrderSummary.GetOrder(this.HttpContext);


            OrderSummaryViewModel vm = new OrderSummaryViewModel()
            {
                OrderItems = ordersOfUser.GetOrderItems()
            };

            return(View(vm));
        }
Exemplo n.º 3
0
        //GET Checkout
        //receives int id only at this point

        public ActionResult Checkout(int id)
        {
            OrderSummary order = OrderSummary.GetOrder(this.HttpContext);

            order.AddOrder(id);

            /*
             * SingleOrderViewModel vm = new SingleOrderViewModel()
             * {
             *  SingleOrder = order.GetSingleOrder()
             * };
             */
            OrderSummaryViewModel vm = new OrderSummaryViewModel()
            {
                OrderItems = order.GetOrderItems()
            };

            return(View(vm));
        }