public ActionResult DeleteConfirmed(int id)
        {
            BankCategory bankCategory = db.BankCategories.Find(id);

            db.BankCategories.Remove(bankCategory);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "BankCat_ID,Bank_Name")] BankCategory bankCategory)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bankCategory).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bankCategory));
 }
        public ActionResult Create([Bind(Include = "BankCat_ID,Bank_Name")] BankCategory bankCategory)
        {
            if (ModelState.IsValid)
            {
                db.BankCategories.Add(bankCategory);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bankCategory));
        }
        // GET: BankCategories/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            BankCategory bankCategory = db.BankCategories.Find(id);

            if (bankCategory == null)
            {
                return(HttpNotFound());
            }
            return(View(bankCategory));
        }