Exemplo n.º 1
0
 public IActionResult DeleteBookById(int bookId)
 {
     try {
         _booksService.DeleteBookById(bookId);
         return(NoContent());
     } catch (NotFoundException e) {
         return(NotFound(e.Message));
     }
 }