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