예제 #1
0
 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"));
 }