public static Country KontrolliereMitDatenbank(Country land, List<Country> länder) { foreach (var country in länder) { if (country.Name.Equals(land.Name)) return country; } return land; }
public City() { PostalCode = ""; Name = ""; Country = new Country(); }