private ScheduleRowViewModel GetScheduleRow(Schedule schedule) { var row = new ScheduleRowViewModel() { Index = schedule.Id, ScheduleRowItems = GetScheduleRowItems(schedule), }; return row; }
private List<ScheduleCellViewModel> GetScheduleRowItems(Schedule schedule) { var items = new List<ScheduleCellViewModel>(); items.Add(GetScheduleRowItem(0, schedule.First)); items.Add(GetScheduleRowItem(1, schedule.Second)); items.Add(GetScheduleRowItem(2, schedule.Third)); return items; }