public ActionResult AddBook2(TBL_BOOKLİST book) { db.TBL_BOOKLİST.Add(book); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult GiveBackBook(TBL_BOOKLİST book) { ViewBag.Result = true; return(View()); }
public ActionResult BookUpdate(TBL_BOOKLİST book) { var TempBook = db.TBL_BOOKLİST.Find(book.id); TempBook.book_name = book.book_name; TempBook.book_isbn = book.book_isbn; TempBook.number_of_pages = book.number_of_pages; db.SaveChanges(); return(RedirectToAction("Index")); }