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