Exemplo n.º 1
0
        public ActionResult Items(long id)
        {
            OrderViewModel data = new OrderViewModel();
            data.Category = new OrderService().GetCategories();

            return View(data);
        }
Exemplo n.º 2
0
        public ActionResult ViewOrder(long id)
        {
            OrderViewModel orderViewModel = new OrderViewModel();

            //get order details
            Order order = new OrderService().getById(id);

            orderViewModel.Order = order;

            return View(orderViewModel);
        }