public ActionResult Edit(Guid id) { Book book = new BookAPI().get(id); return View(book); }
public ActionResult SearchAuthor(Guid authorId) { ViewBag.Authors = new AuthorAPI().get(); List<Book> books = new BookAPI().getByAuthor(authorId); return View(books); }
public ActionResult IndexByAuthor(Guid authorId) { List<Book> books = new BookAPI().getByAuthor(authorId); return View(books); }
public ActionResult Index() { List<Book> books = new BookAPI().get(); return View(books); }