public ActionResult CreateBook() { var book = new Book(); SelectList authors = new SelectList(_bookContext.GetAuthors(), "Id", "Name"); ViewBag.Authors = authors; return(View(book)); }