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