Beispiel #1
0
        private ClassDisplay ConvertToClassDisplay(Class c)
        {
            ClassDisplay cd = new ClassDisplay
            {
                MeetingTime = $"{dao.ConvertDay(c.startDay)} {dao.ConvertTime(c.startHour, c.startMinute)} - {dao.ConvertTime(c.endHour, c.endMinute)}",
                Instructor  = $"{c.instructorFirstMidName} {c.instructorLastName}",
                Campus      = c.campus,
                Room        = $"{c.building} {c.room}",
                IsLecture   = c.isLecture
            };

            return(cd);
        }