public ScheduleDays(int id, Schedule schedule, Days days) { this.ScheduleDayId = id; this.schedule = schedule; this.days = days; }
public void ChangeDayInSchedule(int id, int newdayid) { ScheduleDaysList.Find(item => item.ScheduleDayId == id).days = Days.GetDayById(newdayid); }
public ScheduleDays CreateScheduleDay(int id, int scheduleid, int dayid) { ScheduleDays scheduleday = new ScheduleDays(id, Schedule.GetScheduleById(scheduleid), Days.GetDayById(dayid)); ScheduleDaysList.Add(scheduleday); return(scheduleday); }