示例#1
0
        public ActionResult RejectRequest(string val)
        {
            int requestID;
            BankerDAL bankerDALObj = new BankerDAL();

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

                return Json(bankerDALObj.RejectNewAccountCreationRequest(requestID));
            }
            else if(val[0] == 'A')
            {
                requestID = Convert.ToInt16(val.Substring(3));

                return Json(bankerDALObj.RejectLoanRequest(requestID));
            }
            else if (val[0] == 'T')
            {
                requestID = Convert.ToInt16(val.Substring(3));

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

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