Exemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <Book> > > GetBookItems(string searchTerm)
        {
            var result = await _apiService.GetSearchResultsAsync(searchTerm);

            var mappedResult = _mapper.Map <IEnumerable <Book> >(result);

            return(Ok(mappedResult));
        }
 public async Task <ActionResult <IEnumerable <BookItem> > > GetBookItems(string searchTerm)
 {
     return(Ok(await _apiService.GetSearchResultsAsync(searchTerm)));
 }