예제 #1
0
        private void LoadFromModel(Subject model)
        {
            SubjectCodeId = model.SubjectCodeId;
            Name          = model.Name;
            Code          = model.Code;
            Deleted       = model.Deleted;

            if (model.SubjectCode != null)
            {
                SubjectCode = new SubjectCodeModel(model.SubjectCode);
            }
        }
예제 #2
0
        private void LoadFromModel(ExamBaseElement model)
        {
            AssessmentId   = model.AssessmentId;
            LevelId        = model.LevelId;
            QcaCodeId      = model.QcaCodeId;
            QualAccrNumber = model.QualAccrNumber;
            ElementCode    = model.ElementCode;

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

            if (model.QcaCode != null)
            {
                QcaCode = new SubjectCodeModel(model.QcaCode);
            }

            if (model.Level != null)
            {
                Level = new ExamQualificationLevelModel(model.Level);
            }
        }