public ActionResult LoanStatus()
        {
            LoanStatusModel  lsm   = new LoanStatusModel();
            UserInfo         ui    = CookieFacade.USERINFO;
            IBusinessBanking ibank = GenericFactory <Business, IBusinessBanking> .GetInstance();

            lsm.Username = ui.Username;
            string ret = ibank.ShowLoanStatus(ui.Username);

            lsm.Status = ret;

            ViewBag.Message = "";
            return(View(lsm));
        }
        // GET: Banking
        public ActionResult LoanApproval()
        {
            LoanApprovalModel lam   = new LoanApprovalModel();
            UserInfo          ui    = CookieFacade.USERINFO;
            IBusinessBanking  ibank = GenericFactory <Business, IBusinessBanking> .GetInstance();


            lam.UserName = ibank.GetAllLoanUsers("pending");
            for (int i = 0; i < lam.UserName.Count; i++)
            {
                lam.Status = ibank.ShowLoanStatus(lam.UserName[i]);
            }
            ViewBag.Message = "";
            return(View(lam));
        }