private void LoadFromModel(ReportCardTarget model) { ReportCardId = model.ReportCardId; TargetId = model.TargetId; if (model.ReportCard != null) { ReportCard = new ReportCardModel(model.ReportCard); } if (model.Target != null) { Target = new BehaviourTargetModel(model.Target); } }
public ReportCardTargetModel(ReportCardTarget model) : base(model) { LoadFromModel(model); }