Beispiel #1
0
 public void ApproveCOA(int[] approveRequestList)
 {
     List<int> approvedRequests = approveRequestList.ToList<int>();
     AdminDAL objAdminDAL = new AdminDAL();
     objAdminDAL.ApproveAccountClosingRequest(approvedRequests);
     return;
 }
Beispiel #2
0
 public void ApproveTOC(int[] approveRequestList)
 {
     List<int> approvedRequests = approveRequestList.ToList<int>();
     AdminDAL objAdminDAL = new AdminDAL();
     objAdminDAL.ApproveAccountTransferRequest(approvedRequests);
     return;
 }
Beispiel #3
0
        public ActionResult Index()
        {
            ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
            AdminDAL a = new AdminDAL();

            //bool res = a.AddBranch(new BranchDetails { CityName = "Chenn", Address="add",BranchName="br12",BankerName="som",BranchLogInID="fdaf",BranchLogInPassword="******",ContactNumber="sfs",Email="[email protected]"});
            //bool res = a.IsUniqueBranchLogInID("sadadaca");
            //System.Windows.Forms.MessageBox.Show(res.ToString());
            return View();
        }
Beispiel #4
0
        public ActionResult Index()
        {
            CustomerDAL newObj = new CustomerDAL();
               AdminDAL adminObj = new AdminDAL();

               List<BranchViewModel> list= adminObj.GetAllBranchDetails();

               foreach(var v in list)
               MessageBox.Show(v.branchCode);

               return View();
        }
Beispiel #5
0
        public ActionResult AddBranch(BranchDetails model)
        {
            if (!ModelState.IsValid)
                return View(model);

            AdminDAL obj = new AdminDAL();

            if (!obj.IsUniqueBranchLogInID(model.BranchLogInID))
            {
                ModelState.AddModelError("", "Login ID is alreay taken.");
                return View(model);
            }
            obj.AddBranch(model);
            return View("Dashboard");
        }
Beispiel #6
0
 public JsonResult GetClosureOfAccountAdminRequest(string requestType)
 {
     AdminDAL objAdminDal = new AdminDAL();
     List<ClosureOfAccountAdminView> obj = objAdminDal.GetClosureOfAccountRequests();
     return Json(obj);
 }
Beispiel #7
0
        //
        // GET: /Admin/
        public ActionResult DashBoard()
        {
            string result = (new CommonDAL()).CheckValidation("Admin", this.Session);

            if (result.Equals("LogIn"))
                return RedirectToAction("Login", "CommonBiz");
            else if (result.Equals("Unauthorised"))
                return RedirectToAction("Unauthorised", "CommonBiz");

            AdminDAL objAdminDAL = new AdminDAL();
            ViewBag.BranchTransferRequests = objAdminDAL.GetNoOfAccTransferReq();
            ViewBag.AccountClosureRequests = objAdminDAL.GetNoOfAccClosureferReq();
            return View();
        }
Beispiel #8
0
 public void RejectTOC(int[] rejectRequestList)
 {
     List<int> rejectRequests = rejectRequestList.ToList<int>();
     AdminDAL objAdminDAL = new AdminDAL();
     objAdminDAL.RejectAccountTransferRequest(rejectRequests);
     return;
 }
Beispiel #9
0
 public void RejectCOA(int[] rejectRequestList)
 {
     List<int> rejectRequests = rejectRequestList.ToList<int>();
     AdminDAL objAdminDAL = new AdminDAL();
     objAdminDAL.RejectAccountClosingRequest(rejectRequests);
     return;
 }
Beispiel #10
0
 public JsonResult GetTransferOfAccountAdminRequest(string requestType)
 {
     AdminDAL adminObj = new AdminDAL();
     List<TranferOfAccountAdminView> obj = adminObj.GetTransferAccountRequests();
     return Json(obj);
 }
Beispiel #11
0
 public JsonResult GetListOfBranch()
 {
     AdminDAL objAdminDal = new AdminDAL();
     return Json(objAdminDal.GetAllBranchDetails());
 }