public static void clearAllData() { List <Project> LP = ProjectControllers.GetList(); List <Member> LM = MemberControllers.GetList(); List <Job> LJ = JobControllers.GetList(); foreach (Member run in LM) { run.MaDA = null; run.MaCV = null; MemberControllers.AddOrUpdate(run); } foreach (Project run in LP) { run.MaNQL = null; ProjectControllers.AddOrUpdate(run); } foreach (Job run in LJ) { run.MaNQL = null; run.MaDA = null; JobControllers.AddOrUpdate(run); } foreach (Member run in LM) { MemberControllers.Delete(run.MaTV); } foreach (Project run in LP) { ProjectControllers.Delete(run.MaDA); } foreach (Job run in LJ) { JobControllers.Delete(run.MaCV); } }