@RequestMapping(
     value = "/deleteAuthor",
     method = {RequestMethod.GET, RequestMethod.POST},
     consumes = "application/json",
     produces = "application/json")
 public List<Author> deleteAuthor(@RequestBody Author author) {
   adao.deleteAuthor(author);
   return adao.getAllAuthors(1, 5);
 }
 @RequestMapping(
     value = "/getAuthorsCount",
     method = {RequestMethod.GET, RequestMethod.POST},
     produces = "application/json")
 public int getAuthorsCount() {
   return adao.getAuthorsCount();
 }
 @RequestMapping(
     value = "/getAuthorsByBookId/{bookId}",
     method = {RequestMethod.GET, RequestMethod.POST},
     produces = "application/json")
 public List<Author> getAuthorsByBookId(@PathVariable int bookId) {
   return adao.getAuthorsByBookId(bookId);
 }
 @RequestMapping(
     value = "/getAuthorsById/{id}",
     method = {RequestMethod.GET, RequestMethod.POST},
     produces = "application/json")
 public Author getAuthorById(@PathVariable int authorId) {
   return adao.getAuthorById(authorId);
 }
 @RequestMapping(
     value = "/editAuthor",
     method = {RequestMethod.GET, RequestMethod.POST},
     consumes = "application/json")
 public void editAuthor(@RequestBody List<Author> authors) {
   for (Author author : authors) adao.updateAuthor(author);
 }
 /*Admin Author*/
 @RequestMapping(
     value = "/getAuthors/{pageNo}/{pageSize}",
     method = {RequestMethod.GET, RequestMethod.POST},
     produces = "application/json")
 public List<Author> getAuthors(@PathVariable int pageNo, @PathVariable int pageSize) {
   return adao.getAllAuthors(pageNo, pageSize);
 }
 @RequestMapping(
     value = "/getAuthorsByName/{searchString}/{pageNo}/{pageSize}",
     method = {RequestMethod.GET, RequestMethod.POST},
     produces = "application/json")
 public List<Author> getAuthorsByName(
     @PathVariable String searchString, @PathVariable int pageNo, @PathVariable int pageSize) {
   return adao.getAuthorsByName(searchString, pageNo, pageSize);
 }