public ActionResult DeleteConfirmed(int id)
        {
            Books_Category books_Category = db.Books_Category.Find(id);

            db.Books_Category.Remove(books_Category);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Category_id,Category_name")] Books_Category books_Category)
 {
     if (ModelState.IsValid)
     {
         db.Entry(books_Category).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(books_Category));
 }
        public ActionResult Create([Bind(Include = "Category_id,Category_name")] Books_Category books_Category)
        {
            if (ModelState.IsValid)
            {
                db.Books_Category.Add(books_Category);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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