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(); }
public void SetBusinessHourOn(DayOfWeek day, BusinessSchedule shedule) { Schedule[day] = shedule; }