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