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);
        }
 public ActionResult AddOrder()
 {
     NewOrder model = new NewOrder {
         Order = new OrdersDTO{ }
     };
     //            return PartialView("_NewOrder", model);
     return View("NewOrder", model);
 }
        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);
        }