Example #1
0
 public Employee()
 {
     //id = 0;
     EmployeeNumber = 0;
     Lastname = "";
     Firstname = "";
     Title = Title.keinTitel;
     Area = "";
     IsActive = false;
     Address = new Address();
 }
Example #2
0
        public static Address KontrolliereMitDatenbank(Address adresse, List<Address> Adressen)
        {
            var städte = new List<City>();
            var länder = new List<Country>();
            
            foreach (var address in Adressen)
            {
                städte.Add(address.city);
                länder.Add(address.city.Country);
            }

            adresse.City = City.KontrolliereMitDatenbank(adresse.City, städte);
            adresse.City.Country = Country.KontrolliereMitDatenbank(adresse.City.Country, länder);

            return adresse;
        }