private void AssemblyCountryList() { countryList = new CountryList(); countryList.Load(); foreach (RawBulkPassport rawPassport in rawPassportList) { try { if (rawPassport.citizen.IsValid) { string name = rawPassport.citizen.Data; if (countryList.Find(item => item.Name == name) == null) { Country country = countryList.Create(); country.Name = name; country.Save(); } } if (rawPassport.emmitated.IsValid) { string name = rawPassport.citizen.Data; if (countryList.Find(item => item.Name == name) == null) { Country country = countryList.Create(); country.Name = name; country.Save(); } } } catch { failedPassport.Add(rawPassport); } } }