Exemplo n.º 1
0
        public ActionResult ApproveRequest(string val)
        {
            int requestID;
            BankerDAL bankerDALObj = new BankerDAL();

            if (val[0] == 'N')
            {
                requestID = Convert.ToInt16(val.Substring(3));

                return Json(bankerDALObj.ApproveNewAccountCreationRequest(requestID));
            }
            else
            {
                requestID = Convert.ToInt16(val.Substring(3));

                return Json(bankerDALObj.ApproveLoanRequest(requestID));
            }
        }