private void LoadFromModel(ReportCardTargetEntry model) { EntryId = model.EntryId; TargetId = model.TargetId; TargetCompleted = model.TargetCompleted; if (model.Entry != null) { Entry = new ReportCardEntryModel(model.Entry); } if (model.Target != null) { Target = new ReportCardTargetModel(model.Target); } }
public ReportCardTargetEntryModel(ReportCardTargetEntry model) : base(model) { LoadFromModel(model); }