public IActionResult OnPost() { if (!ModelState.IsValid) { return(Page()); } repo.UpdateLocation(Location); return(RedirectToPage("Index")); }
public IActionResult OnPost(int?id) { if (id == null) { return(NotFound()); } _locations.UpdateLocation(Location); return(RedirectToPage("./Index")); }
public void UpdateLocation(Location location) { repo.UpdateLocation(location); }
public IActionResult OnPostEdit() { _locationRepo.UpdateLocation(_location); return(RedirectToPage("Index")); }
public void UpdateLocation(Locations location) { locRepo.UpdateLocation(location); }