public ActionResult Edit([Bind(Include = "BookId,Title,ISBN")] Book book) { if (ModelState.IsValid) { bookClient.Edit(book); return(RedirectToAction("Index")); } return(View(book)); }
public ActionResult EditBook(Book book) { try { if (ModelState.IsValid) { db.Edit(book); return(RedirectToAction("Index")); } return(View(book)); } catch { return(View()); } }
public ActionResult Edit(Book book) { bsc.Edit(book); return(RedirectToAction("Index", "Book")); }