public ActionResult Edit(Owner owner) { try { //call the OwnerManager to EDIT OwnerManager.Update(owner); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public IActionResult Edit(Owner owner) { OwnerManager.Update(owner); return(RedirectToAction(nameof(Index))); }