Exemplo n.º 1
0
 public ActionResult Create(Borrower borrower)
 {
     if (borrowerService.CreateBorrower(borrower))
     {
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View(borrower));
     }
 }
Exemplo n.º 2
0
 public IActionResult Create(Borrower borrower)
 {
     borrowerService.CreateBorrower(borrower);
     return(RedirectToAction("Index"));
 }