public async Task <IActionResult> GetAuthorsAsync() { var collection = await service.AllAsync(); var mappedAuthors = this.mapper.Map <AuthorViewModel[]>(collection); return(Ok(mappedAuthors)); }
public async Task <IActionResult> GetAuthorsAsync() { var collection = await service.AllAsync(); var mappedAuthors = this.mapper.Map <AuthorViewModel[]>(collection); return(Ok(mappedAuthors)); }