public ActionResult TransferRequest(string val) { /* string result = (new CommonDAL()).CheckValidation("Banker", this.Session); if (result.Equals("LogIn")) return RedirectToAction("Login", "CommonBiz"); else if (result.Equals("Unauthorised")) return RedirectToAction("Unauthorised", "CommonBiz"); */ int requestID; BankerDAL bankerDALObj = new BankerDAL(); if (val[0] == 'T') { requestID = Convert.ToInt16(val.Substring(3)); return Json(bankerDALObj.TransferTransferOfAccountRequest(requestID)); } else { requestID = Convert.ToInt16(val.Substring(3).ToString()); return Json(bankerDALObj.TransferClosingOfAccountRequest(requestID)); } }