public ActionResult Edit(BookUpdateViewModel bookView, List <int> authorsMultiSelect) { if (bookView == null) { return(HttpNotFound()); } if (ModelState.IsValid) { _bookService.Update(bookView, authorsMultiSelect); } return(RedirectToAction("Index")); }
public ActionResult Books_Update(Book book) { if (ModelState.IsValid) { bookService.Update(book); RouteValueDictionary routeValues = this.GridRouteValues(); return(RedirectToAction("Index", routeValues)); } return(View("Index", bookService.Read())); }