Exemplo n.º 1
0
        public ActionResult StaffOrderDetail(int order_number)
        {
            OrderDetailViewer order_viewer = new OrderDetailViewer();
            OrderViewModel    order        = order_viewer.GetOrderDetails(order_number);

            return(View(order));
        }
Exemplo n.º 2
0
        public ActionResult AfterOrder(int o)
        {
            OrderDetailViewer order_viewer = new OrderDetailViewer();
            OrderViewModel    order        = order_viewer.GetOrderDetails(o);

            return(View(order));
        }
Exemplo n.º 3
0
        public ActionResult RecentOrders(int days)
        {
            // calculate the date range
            DateTime end_date   = DateTime.Now;
            DateTime start_date = end_date.AddDays(-1 * days);

            OrderDetailViewer      order_viewer = new OrderDetailViewer();
            IList <OrderViewModel> orders       = order_viewer.GetOrderDetails(start_date, end_date);

            var model = new RecentOrdersModel();

            model.Orders    = orders;
            model.Days      = days;
            model.StartDate = start_date;
            model.EndDate   = end_date;

            return(View(model));
        }