Exemple #1
0
        private static void InitializeThread( )
        {
            int waitTime = 3;

            Thread.Sleep(500);
            MovieBL.GetAll();

            Thread.Sleep(waitTime);
            ActorBL.GetAll();

            Thread.Sleep(waitTime);
            DirectorBL.GetAll();

            Thread.Sleep(waitTime);
            WriterBL.GetAll();

            Thread.Sleep(waitTime);
            LanguageBL.GetAll();

            Thread.Sleep(waitTime);
            ArchiveBL.GetAll();

            Thread.Sleep(waitTime);
            TypeBL.GetAll();

            Thread.Sleep(waitTime);
            MovieActorBL.GetAll( );
            MovieActorBL.GetAllDO( );

            Thread.Sleep(waitTime);
            MovieUserArchiveBL.GetAll();
            MovieUserArchiveBL.GetAllDO();

            Thread.Sleep(waitTime);
            MovieDirectorBL.GetAll( );
            MovieDirectorBL.GetAllDO( );

            Thread.Sleep(waitTime);
            MovieLanguageBL.GetAll();
            MovieLanguageBL.GetAllDO();

            Thread.Sleep(waitTime);
            MovieNameBL.GetAll();
            MovieNameBL.GetAllAsDO();

            Thread.Sleep(waitTime);
            MovieTypeBL.GetAll();
            MovieTypeBL.GetAllDO();

            Thread.Sleep(waitTime);
            MovieWriterBL.GetAll();
            MovieWriterBL.GetAllDO();

            Thread.Sleep(waitTime);
            MovieUserRatingBL.GetAll();
        }
Exemple #2
0
        public static List <MovieListDO> GetLastYearForListing( )
        {
            var list = MovieBL.GetAll( ).Where(q => q.Year.HasValue && q.Year == DateTime.Now.Year - 1).ToList( );

            return(getMovieListDO(list));
        }
Exemple #3
0
        public static List <MovieListDO> GetAllForListing( )
        {
            var list = MovieBL.GetAll( ).ToList( );

            return(getMovieListDO(list));
        }
Exemple #4
0
        public static List <MovieListDO> GetAllInDiscsForListing( )
        {
            var list = MovieBL.GetAll( ).Where(q => q.MOV_M_Archives.Any(a => a.MovieID == q.ID)).ToList( );

            return(getMovieListDO(list));
        }
Exemple #5
0
 private static List <MovieListDO> getMovieListDO(List <int> idList)
 {
     return(getMovieListDO(MovieBL.GetAll( ).Where(q => idList.Contains(q.ID)).ToList( )));
 }