public async Task <IActionResult> GetAuthorsAsync([FromBody] AuthorMultiDto authorMulti) { return(Ok(await _authorService.GetAuthorsAsync(authorMulti))); }
public async Task <IReadOnlyList <AuthorDto> > GetAuthorsAsync(AuthorMultiDto authorMulti) { var authorsFound = await _authorRepository.GetAuthorsAsync(authorMulti.WithBookData, authorMulti.AuthorsId); return(_mapper.Map <IReadOnlyList <AuthorDto> >(authorsFound)); }