public ActionResult Create(Borrower borrower)
 {
     if (borrowerService.CreateBorrower(borrower))
     {
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View(borrower));
     }
 }
示例#2
0
 public IActionResult Create(Borrower borrower)
 {
     borrowerService.CreateBorrower(borrower);
     return(RedirectToAction("Index"));
 }