Exemplo n.º 1
0
        public Task AddEntry(Workflow workflow, FileRef file, FileStage stage, string message = null, string refData = null)
        {
            _auditLogEntryCollection.Insert(new AuditLogEntry
            {
                DateCreated  = DateTimeOffset.UtcNow,
                WorkflowName = workflow.Name,
                FileName     = file.Name,
                FileStage    = stage,
                Message      = message ?? string.Empty,
                Reference    = refData ?? string.Empty
            });

            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
 public void Update(FileStage entity)
 {
     Session.Update(entity);
 }