private void LoadFromModel(AttendancePeriod model)
        {
            WeekPatternId = model.WeekPatternId;
            Weekday       = model.Weekday;
            Name          = model.Name;
            StartTime     = model.StartTime;
            EndTime       = model.EndTime;
            AmReg         = model.AmReg;
            PmReg         = model.PmReg;

            if (model.WeekPattern != null)
            {
                WeekPattern = new AttendanceWeekPatternModel(model.WeekPattern);
            }
        }
        private void LoadFromModel(AttendanceWeek model)
        {
            WeekPatternId  = model.WeekPatternId;
            AcademicTermId = model.AcademicTermId;
            Beginning      = model.Beginning;
            IsNonTimetable = model.IsNonTimetable;

            if (model.WeekPattern != null)
            {
                WeekPattern = new AttendanceWeekPatternModel(model.WeekPattern);
            }

            if (model.AcademicTerm != null)
            {
                AcademicTerm = new AcademicTermModel(model.AcademicTerm);
            }
        }