Ejemplo n.º 1
0
        public async Task <IEnumerable <Movie> > GetAsync(string title)
        {
            var movies = await _movieRepository.GetAsync(title);

            foreach (var movie in movies.Result)
            {
                var trailers = await _trailerRepository.GetAsync(movie.Title);

                movie.Trailers = trailers.Result;
            }

            return(movies.Result);
        }