public async Task RaiseAsync(AbstractModel model) { var audit = new Audit() { Value = model.ToString() }; await _auditRepository.AddAsync(audit); await _auditRepository.CompleteAsync(); }
public async Task Execute(AuditEventCreateCommand command) { await _auditRepository.AddAsync(command.Model); }