예제 #1
0
        public async Task <ActionResult <IEnumerable <Book> > > GetAuthorBookItems(string author)
        {
            var result = await _apiService.GetAuthorBooksAsync(author);

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

            return(Ok(mappedResult));
        }
 public async Task <ActionResult <IEnumerable <BookItem> > > GetAuthorBookItems(string author)
 {
     return(Ok(await _apiService.GetAuthorBooksAsync(author)));
 }