Example #1
0
        private void LoadFromModel(SenReview model)
        {
            StudentId    = model.StudentId;
            ReviewTypeId = model.ReviewTypeId;
            Date         = model.Date;
            Description  = model.Description;
            Outcome      = model.Outcome;

            if (model.Student != null)
            {
                Student = new StudentModel(model.Student);
            }

            if (model.ReviewType != null)
            {
                ReviewType = new SenReviewTypeModel(model.ReviewType);
            }
        }
Example #2
0
 public SenReviewModel(SenReview model) : base(model)
 {
     LoadFromModel(model);
 }