public void Check2() { RoofTopModuleSelectRepository moduleSelectRepository = new RoofTopModuleSelectRepository(); var moduleList = moduleSelectRepository.FindAll(); for (int i = 0; i < foundationHeight.Count(); i++) { var list = moduleList.FindAll(x => x.minimumHeight == foundationHeight[i].ToString()); WriteLog(list); } }