Beispiel #1
0
        private void LoadFromModel(Class model)
        {
            CourseId          = model.CourseId;
            CurriculumGroupId = model.CurriculumGroupId;
            Code = model.Code;

            if (model.Course != null)
            {
                Course = new CourseModel(model.Course);
            }

            if (model.Group != null)
            {
                Group = new CurriculumGroupModel(model.Group);
            }
        }
Beispiel #2
0
        private void LoadFromModel(ExamAward model)
        {
            QualificationId = model.QualificationId;
            AssessmentId    = model.AssessmentId;
            CourseId        = model.CourseId;
            Description     = model.Description;
            AwardCode       = model.AwardCode;
            ExpiryDate      = model.ExpiryDate;

            if (model.Assessment != null)
            {
                Assessment = new ExamAssessmentModel(model.Assessment);
            }

            if (model.Qualification != null)
            {
                Qualification = new ExamQualificationModel(model.Qualification);
            }

            if (model.Course != null)
            {
                Course = new CourseModel(model.Course);
            }
        }