public async Task <IActionResult> GetBooksAsync([FromBody] BookMultiDto bookMulti) { return(Ok(await _bookService.GetBooksAsync(bookMulti))); }
public async Task <IReadOnlyList <BookDto> > GetBooksAsync(BookMultiDto bookMulti) { var booksFound = await _bookRepository.GetBooksAsync(bookMulti.BooksId); return(_mapper.Map <IReadOnlyList <BookDto> >(booksFound)); }