public async Task <IEnumerable <Book> > SearchBooksByAuthor(SearchAuthorDto search) { var author = _queryHelper.Encode(search.Author); var orderBy = _queryHelper.GetOrderBy(search.OrderBy); var url = _queryHelper.GetAuthorUrl(author, orderBy, search.MaxResults); var result = await _searchRunner.PerformSearch(url); return(_searchMapper.MapBooks(result)); }
public async Task <IEnumerable <Book> > SearchBooksByAuthor([FromBody] SearchAuthorDto search) { return(await _searchHelper.SearchBooksByAuthor(search)); }