コード例 #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);
 }