public ActionResult Edit([Bind(Include = "id,title,SBIN,NumberOfCopied,describtion")] Book book)
 {
     if (ModelState.IsValid)
     {
         db.Entry(book).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(book));
 }
 public void EditBookData(Book book)
 {
     db.Entry(book).State = EntityState.Modified;
     db.SaveChanges();
 }
 public void Edit(User user)
 {
     db.Entry(user).State = EntityState.Modified;
     db.SaveChanges();
 }