public async Task <IEnumerable <MovieResponse> > GetAllItemsFromDatabase()
        {
            var response = await _repository.GetAllItems();

            return(response.Items.Select(_mapper.ToMovieResponseContract));
        }
Example #2
0
        public async Task <IEnumerable <MovieResponse> > GetAllItemsFromDatabase()
        {
            var response = await _movieRankRepository.GetAllItems();

            return(_map.ToMovieContract(response));
        }
Example #3
0
 public async Task <IEnumerable <MovieResponse> > GetAllItemsFromDatabase(CancellationToken cancellationToken)
 {
     return(await _movieRankRepository.GetAllItems(cancellationToken));
 }