public ActionResult Edit(int?id) { Book bookObj = bookDB.GetBookById(id); ViewBag.author = new SelectList((IEnumerable <Author>)authDB.GetAuthorsList(), "AuthorId", "AuthorName"); return(View(bookObj)); }
public BookModel GetBookById(int id) { return(_bookModel.GetBookById(id)); }
public ActionResult Edit(int?id) { Book bookObj = bookDB.GetBookById(id); return(View(bookObj)); }