public ActionResult Edit(string id)
        {
            sp_BankSelect_Result model = new sp_BankSelect_Result();
            var bankData = BankBusinessLogic.getInstance().getBankById(id);

            model.BankId    = bankData.BankId;
            model.BankName  = bankData.BankName;
            model.AccountNo = bankData.AccountNo;
            return(View(model));
        }
 public ActionResult Delete(string id)
 {
     if (BankBusinessLogic.getInstance().DeleteBank(id) == -1)
     {
         TempData["Success"] = "Bank was successfully deleted";
     }
     else
     {
         TempData["Error"] = "Bank was unsuccessfully deleted";
     }
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(sp_BankSelect_Result model)
 {
     if (BankBusinessLogic.getInstance().UpdateBank(model) == -1)
     {
         TempData["Success"] = "Bank was successfully updated";
     }
     else
     {
         TempData["Error"] = "Bank was unsuccessfully updated";
     }
     return(RedirectToAction("Index"));
 }
 public ActionResult Create(sp_BankSelect_Result model)
 {
     if (BankBusinessLogic.getInstance().GetCountBank(model.BankName) == 0)
     {
         if (BankBusinessLogic.getInstance().CreateBank(model) == -1)
         {
             TempData["Success"] = "Bank was successfully inserted";
         }
         else
         {
             TempData["Error"] = "Bank was unsuccessfully inserted";
         }
     }
     else
     {
         TempData["Error"] = "Bank already exist";
     }
     return(RedirectToAction("Index"));
 }
 public ActionResult Index()
 {
     return(View(BankBusinessLogic.getInstance().ListBank()));
 }