コード例 #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);
 }