示例#1
0
        public MoviesList getMoviesListByCategoryId(int categoryId)
        {
            MoviesList movieList = new MoviesList();

            foreach (var Movie in this.repo.getFullMoviesList())
            {
                if (categoryId == Movie.categoryId)
                {
                    movieList.Add(Movie);
                }
            }

            return(movieList);
        }
示例#2
0
        public Movie getMovieDetails(int id)
        {
            MoviesList filmsList = repo.getFullMoviesList();

            foreach (var Movie in filmsList)
            {
                if (id == Movie.id)
                {
                    return(Movie);
                }
            }

            return(null);
        }