Exemplo n.º 1
0
 public IActionResult Edit(Location location)
 {
     if (ModelState.IsValid)
     {
         repo.Save(location);
         TempData["message"] = $"Zapisano zmiany.";
         return(RedirectToAction("LocationListAdmin"));
     }
     else
     {
         return(View(location));
     }
 }