public ActionResult RegisterBorrower(string name, string address, string phoneNo, string password) { if (password.Equals("") || name.Equals("")) { return(RedirectToAction("/Register/", new { message = "Name and Password are required!" })); } Borrower Check = _BorrowerService.RegisterBorrower(name, address, phoneNo, password); return(RedirectToAction("/Success/", new { CardNo = Check.CardNo })); }