public ActionResult Create(Owner owner) { try { //call the OwnerManager to ADD OwnerManager.Add(owner); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public IActionResult Create(Owner owner) { OwnerManager.Add(owner); return(RedirectToAction(nameof(Index))); }