コード例 #1
0
 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());
     }
 }
コード例 #2
0
 public void Put(int id, PoliceStationDto newPoliceStationDto)
 {
     newPoliceStationDto.Id = id;
     mPoliceStationManagement.Modify(newPoliceStationDto);
 }