コード例 #1
0
        public IEnumerable <ComplexMovie> GetByYear(int year)
        {
            var actorMovies = _repository.SearchFor(x => x.Movie.Year == year);
            var content     = ComplexObjectCreator.GetComplexMovies(actorMovies);

            return(content);
        }
コード例 #2
0
        public IEnumerable <ComplexActor> ListActorsStarringInMovie(int movieId)
        {
            var actorMovies = _repository.SearchFor(x => x.MovieId == movieId);
            var actors      = ComplexObjectCreator.GetComplexActors(actorMovies);

            return(actors);
        }