public async Task <IActionResult> Update(int id, [Bind("BookId", "Name", "ReleaseDate", "AuthorId", "Description")] Book book) { if (id != book.BookId) { return(NotFound()); } ViewData["Authors"] = new SelectList(_authorDbSet.returnDbSetAuthor(), "AuthorId", "FirstAndLastName"); if (await _updateData.UpdateBookAsync(id, book)) { return(RedirectToAction(nameof(Index))); } else { return(NotFound()); } }