private void LoadFromModel(ExamQualificationLevel model)
        {
            QualificationId   = model.QualificationId;
            DefaultGradeSetId = model.DefaultGradeSetId;
            JcLevelCode       = model.JcLevelCode;

            if (model.DefaultGradeSet != null)
            {
                DefaultGradeSet = new GradeSetModel(model.DefaultGradeSet);
            }

            if (model.Qualification != null)
            {
                Qualification = new ExamQualificationModel(model.Qualification);
            }
        }
Esempio n. 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);
            }
        }