Exemple #1
0
 public String add() {
   final Book book = new Book();
   book.setBookTitle(bookTitle);
   bookService.addBook(book);
   return "success";
 }
Exemple #2
0
 public String fetchBooks() {
   booksAvailable = bookService.getAllBooks();
   return "success";
 }