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