public ActionResult Edit(PoliceStationDto thePoliceStationToEditDto) { try { mPoliceStationManagement.Modify(thePoliceStationToEditDto); // I want to return the user to the details page instead of the list page return(RedirectToAction(nameof(Details), thePoliceStationToEditDto)); } catch { return(View()); } }
public void Put(int id, PoliceStationDto newPoliceStationDto) { newPoliceStationDto.Id = id; mPoliceStationManagement.Modify(newPoliceStationDto); }