} // CreateOutcomeFramework public OutcomeFramework UpdateOutcomeFramework(Guid guid, OutcomeFramework update) { OutcomeFramework of = OutcomeFramework(guid); if (of == null) return null; of.CopyFrom(update); Commit(of); return of; } // UpdateOutcomeFramework
} // OutcomeFramework public OutcomeFramework CreateOutcomeFramework(OutcomeFramework newOF) { OutcomeFramework of = new OutcomeFramework(); of.Id = Guid.NewGuid(); of.CopyFrom(newOF); context.OutcomeFrameworks.Add(of); Commit(); return of; } // CreateOutcomeFramework
public void CopyFrom(OutcomeFramework other) { Title = other.Title; Description = other.Description; OwningOrganisation = other.OwningOrganisation; } // CopyFrom