public ScheduleListViewModel(ScheduleListDto schedulesListDto) { OfferingId = schedulesListDto.Offering.Id; Offering = schedulesListDto.Offering; Schedules = schedulesListDto.Schedules.ToList(); IsNew = !(Schedules .Count(s => s.StartTime.HasValue && s.EndTime.HasValue) > 0); IsCurrentTerm = schedulesListDto.Offering.Term.IsCurrentTerm; }