public ActionResult RequestClosureOfAccount() { string result = (new CommonDAL()).CheckValidation("Customer", this.Session); if (result.Equals("LogIn")) return RedirectToAction("Login", "CommonBiz"); else if (result.Equals("Unauthorised")) return RedirectToAction("Unauthorised", "CommonBiz"); long customerID = (Session["User"] as UserRole).customerID; CustomerDAL objCustomerDAL = new CustomerDAL(); ViewBag.savingsAccountList = objCustomerDAL.GetAccountsListAsLongListByCustomerID(customerID); ViewBag.message = ""; return View(); }
public ActionResult RequestClosureOfAccount(CloseAccountCustomerViewModel model) { long customerID = (Session["User"] as UserRole).customerID; CustomerDAL objCustomerDAL = new CustomerDAL(); //List<long> savingsAccountList = new List<long>() { 121212, 12123123421 }; ViewBag.savingsAccountList = objCustomerDAL.GetAccountsListAsLongListByCustomerID(customerID); if (objCustomerDAL.AddCloseAccountRequest(model.accountNumber, customerID)) { ViewBag.message = "Request for closure of account is successful"; } else { ViewBag.message = "Request already exist"; } return View(); }
public ActionResult MiniDetailedstatements() { string result = (new CommonDAL()).CheckValidation("Customer", this.Session); if (result.Equals("LogIn")) return RedirectToAction("Login", "CommonBiz"); else if (result.Equals("Unauthorised")) return RedirectToAction("Unauthorised", "CommonBiz"); List<TransactionStatementViewModel> transactionsList = new List<TransactionStatementViewModel>(); List<long> accountsList = new List<long>(); CustomerDAL customerDALObject = new CustomerDAL(); long customerID = (Session["User"] as UserRole).customerID; accountsList = customerDALObject.GetAccountsListAsLongListByCustomerID(customerID); ViewBag.accountsList = accountsList; if (accountsList != null) ViewBag.transactionDetails = customerDALObject.GetLastFiveTransactions(accountsList[0]); return View(); }