예제 #1
0
 public IActionResult EditState(Order order)
 {
     if (ModelState.IsValid)
     {
         repository.EditState(order);
         TempData["message"] = $"Zapisano zmiany.";
         return(RedirectToAction("OrderList"));
     }
     else
     {
         return(View(order));
     }
 }