public Acknowledgment GetResultAcknowledgment(string resultUuid) { _Trace.TraceEvent(TraceEventType.Verbose, -1, "GetResultAcknowledgment"); Guid guid = new Guid(resultUuid); CriticalResultsEntityManager manager = new CriticalResultsEntityManager(); AcknowledgmentEntity e = manager.GetResultAcknowledgment(guid); if (e == null) return new Acknowledgment(); Acknowledgment ack = new Acknowledgment(e); ack.ResolveUser(); ack.ResolveResult(); return ack; }
public Acknowledgment CreateResultAcknowledgment(string resultUuid, string userName, string notes) { _Trace.TraceEvent(TraceEventType.Verbose, -1, "CreateResultAcknowledgment"); AcknowledgmentEntity e = new CriticalResultsEntityManager().CreateAcknowledgment(new Guid(resultUuid), userName, notes); Acknowledgment ack = new Acknowledgment(e); ack.ResolveResult(); ack.ResolveUser(); AuditEvent("AcknowledgeResult:Success", string.Format("{0}; {1}", resultUuid, userName)); return ack; }