public IEnumerable <GenreViewModel> Genres(string key) { GameDTO gameDto = _gameService.GetByKey(key); var genresDto = new List <GenreDTO>(); gameDto.GenresId.ForEach(x => genresDto.Add(_genreService.GetById(x))); var genres = Mapper.Map <IEnumerable <GenreViewModel> >(genresDto); return(genres); }