//[Produces(typeof(BookDTO))] public async Task <ActionResult <BookDTO> > AddBook([FromBody] BookDTO bookDTO) { var book = _mapper.Map <Book>(bookDTO); var checkAdd = await _librarymanager.AddBook(book); if (checkAdd == 0) { return(NotFound()); } return(Ok(_mapper.Map <BookDTO>(book))); }