示例#1
0
        public ActionResult AddOrder( NewOrder model )
        {
            model.Order.ClientId = User.Identity.GetUserId();
            model.Order.Id = orderService.AddOrder(model.Order);
            model.Prices = priceService.GetPricesList();

            return View("NewOrder", model);
        }
示例#2
0
 public ActionResult AddOrder()
 {
     NewOrder model = new NewOrder {
         Order = new OrdersDTO{ }
     };
     //            return PartialView("_NewOrder", model);
     return View("NewOrder", model);
 }
示例#3
0
        public ActionResult AddOrderPart(int orderId, int priceId, int number)
        {
            orderService.AddPart(orderId, priceId, number);

            var model = new NewOrder
            {
                Order = orderService.GetOrderById(orderId),
                OrderParts = orderService.GetOrderParts(orderId).ToList(),
                Prices = priceService.GetPricesList()
            };

            return View("NewOrder", model);
        }