public ActionResult Create([Bind(Include = "BookId,Isbn,Title,Year,Author,ImageUrl")] Book book) { if (ModelState.IsValid) { DAL.SaveNewBook(book); return(RedirectToAction("Index")); } return(View(book)); }
public ActionResult Create([Bind(Include = "BookId,Isbn,Title,Year,Author,ImageUrl")] Book book) { if (ModelState.IsValid) { DAL.SaveNewBook(book); return(RedirectToAction("Index")); } return(View(book)); }