public ActionResult Edit(Book category)
        {
            BookstoreEntities1 db = new BookstoreEntities1();

            db.Entry(category).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            return(RedirectToAction("BookList"));
        }
        public ActionResult Addbook(BookStore.Models.Book book)
        {
            BookstoreEntities1 db = new BookstoreEntities1();

            db.Books.Add(book);
            db.SaveChanges();
            return(View());
        }
        public ActionResult Delete(int id)
        {
            BookstoreEntities1 db = new BookstoreEntities1();
            var category          = db.Books.Find(id);

            db.Books.Remove(category);
            db.SaveChanges();
            return(RedirectToAction("BookList"));
        }