예제 #1
0
        public List <Actor> GetActorsNotInMovie(int movieId)
        {
            List <Actor> allActors = _dALActor.AllActors();
            DALMovie     dALMovie  = new DALMovie();

            var movie = dALMovie.GetMovieById(movieId);

            movie.Actors.Where(a => !a.Deleted).ToList().ForEach(a => {
                allActors.RemoveAll(c => c.Id == a.Id);
            });

            return(allActors);
        }
예제 #2
0
        public List <Genre> GetGenresNotInMovie(int movieId)
        {
            List <Genre> allGenres = _dALGenre.AllGenres();
            DALMovie     dALMovie  = new DALMovie();

            var movie = dALMovie.GetMovieById(movieId);

            movie.Genres.Where(a => !a.Deleted).ToList().ForEach(a => {
                allGenres.RemoveAll(c => c.Id == a.Id);
            });

            return(allGenres);
        }