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); }
public Movie getMovieDetails(int id) { MoviesList filmsList = repo.getFullMoviesList(); foreach (var Movie in filmsList) { if (id == Movie.id) { return(Movie); } } return(null); }