Пример #1
0
        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));
        }