private static void LoadCertificateAgents() { globalListCertificateAgents = StaticdbEntities.Education_Agent .ToList(); UC_Certification.staticDataSource = UC_Certification.GetDataSourceStatic(globalListCertificateAgents.ToPagedList(1, globalListCertificateAgents.Count())); }
static void LoadUsersThread() { //Thread y = new Thread(LoadCertificateAgents); //y.Start(); using (AgentDataAccess dbRep = new AgentDataAccess()) { globalListAgents = dbRep.LoadAllAgents(); UC_Certification.staticDataSource = UC_Certification.GetDataSourceStatic(globalListAgents.ToPagedList(1, globalListAgents.Count())); } }