public IEnumerable <ComplexMovie> GetByYear(int year) { var actorMovies = _repository.SearchFor(x => x.Movie.Year == year); var content = ComplexObjectCreator.GetComplexMovies(actorMovies); return(content); }
public IEnumerable <ComplexActor> ListActorsStarringInMovie(int movieId) { var actorMovies = _repository.SearchFor(x => x.MovieId == movieId); var actors = ComplexObjectCreator.GetComplexActors(actorMovies); return(actors); }