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); } }
public SenReviewModel(SenReview model) : base(model) { LoadFromModel(model); }