Ejemplo n.º 1
0
        public async Task <IEnumerable <GenreResponseModel> > GetGenresByMovie(int movieId)
        {
            var genres = await _movieGenreRepository.GetGenresByMovieIdAsync(movieId);

            var response = genres.Select(g => new GenreResponseModel {
                Id = g.Id, Name = g.Name
            });

            return(response);
        }