Пример #1
0
        public ActionResult EditOrder(OrderViewModel order)
        {
            if (ModelState.IsValid)
            {
                var orderModel = modelBuilder.BuildOrderModel(order, User.Identity.GetUserId());
                var result     = userService.SaveOrder(orderModel);
                TempData["message"] = result.Message;

                return(RedirectToAction(result.Property));
            }

            return(View(order));
        }