コード例 #1
0
 public ActionResult Edit(Owner owner)
 {
     try
     {
         //call the OwnerManager to EDIT
         OwnerManager.Update(owner);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(View());
     }
 }
コード例 #2
0
 public IActionResult Edit(Owner owner)
 {
     OwnerManager.Update(owner);
     return(RedirectToAction(nameof(Index)));
 }