Ejemplo n.º 1
0
 public async Task Execute(DeleteVisitorCommand cmd, CqrsContext ctx, CancellationToken cancellationToken = new CancellationToken())
 {
     await _visitorsRepository.Delete(new ObjectId(cmd.Id));
 }
Ejemplo n.º 2
0
 public async Task Delete(string id)
 {
     var cmd = new DeleteVisitorCommand(id);
     await _cqrsDispatcher.ExecuteCommand(cmd, null, new CancellationToken());
 }