public IActionResult ReNewLoan(string accountNumber) { try { var getAccountNo = _loanRepo.ActivateLoan(accountNumber); if (getAccountNo == null) { return(RedirectToAction("SearchCustToActivate", "Customer")); } /////////////// LoanModel smodel = _mapper.Map <LoanModel>(getAccountNo); return(View(smodel)); //return View(Model); } catch (Exception ex) { throw ex; // return View("Error"); } }