Пример #1
0
 public ActionResult Edit(Guid id)
 {
     Book book = new BookAPI().get(id);
     return View(book);
 }
Пример #2
0
 public ActionResult SearchAuthor(Guid authorId)
 {
     ViewBag.Authors = new AuthorAPI().get();
     List<Book> books = new BookAPI().getByAuthor(authorId);
     return View(books);
 }
Пример #3
0
 public ActionResult IndexByAuthor(Guid authorId)
 {
     List<Book> books = new BookAPI().getByAuthor(authorId);
     return View(books);
 }
Пример #4
0
 public ActionResult Index()
 {
     List<Book> books = new BookAPI().get();
     return View(books);
 }