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