public BusinessContact(BusinessContact aContact) { City = aContact.City; StreetNumber = aContact.StreetNumber; Street = aContact.Street; Postalcode = aContact.Postalcode; AditionalInfo = aContact.AditionalInfo; Email = aContact.Email; Telephone = aContact.Telephone; }
public Business() { Titel = "Dummy Titel"; Description = "Dummy Description"; Events = new List<BusinessEvent>(); Schedule = new Dictionary<DayOfWeek,BusinessSchedule>(); var days = Enum.GetValues(typeof(DayOfWeek)); foreach(DayOfWeek day in days) { Schedule[day] = new BusinessSchedule(); } Contact = new BusinessContact(); }