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(); }