private void LoadFromModel(ExamAssessmentAspect model) { AssessmentId = model.AssessmentId; AspectId = model.AspectId; SeriesId = model.SeriesId; AspectOrder = model.AspectOrder; if (model.Aspect != null) { Aspect = new AspectModel(model.Aspect); } if (model.Assessment != null) { Assessment = new ExamAssessmentModel(model.Assessment); } if (model.Series != null) { Series = new ExamSeriesModel(model.Series); } }
public ExamAssessmentAspectModel(ExamAssessmentAspect model) : base(model) { LoadFromModel(model); }