public static void CopyIssuedFromAudit(this Observation observation, HealthServiceAudit created) { if (created != null) { observation.Issued = created.Timestamp.ToDateTimeOffset(); } }
public static void CopyLastUpdatedFromAudit(this Resource resource, HealthServiceAudit lastUpdated) { if (lastUpdated != null) { resource.CreateMetaIfNeeded(); resource.Meta.LastUpdated = lastUpdated.Timestamp.ToDateTimeOffset(); } }