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(); }
public static List <MovieListDO> GetLastYearForListing( ) { var list = MovieBL.GetAll( ).Where(q => q.Year.HasValue && q.Year == DateTime.Now.Year - 1).ToList( ); return(getMovieListDO(list)); }
public static List <MovieListDO> GetAllForListing( ) { var list = MovieBL.GetAll( ).ToList( ); return(getMovieListDO(list)); }
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)); }
private static List <MovieListDO> getMovieListDO(List <int> idList) { return(getMovieListDO(MovieBL.GetAll( ).Where(q => idList.Contains(q.ID)).ToList( ))); }