예제 #1
0
        public async Task RaiseAsync(AbstractModel model)
        {
            var audit = new Audit()
            {
                Value = model.ToString()
            };
            await _auditRepository.AddAsync(audit);

            await _auditRepository.CompleteAsync();
        }
예제 #2
0
 public async Task Execute(AuditEventCreateCommand command)
 {
     await _auditRepository.AddAsync(command.Model);
 }