Exemplo n.º 1
0
 public async Task HandleAsync(AddOrUpdateEntityCommand <TEntity> command, CancellationToken cancellationToken = default)
 {
     await _crudService.AddOrUpdateAsync(command.Entity);
 }
 public void Handle(AddOrUpdateEntityCommand <TEntity> command)
 {
     _crudService.AddOrUpdate(command.Entity);
 }
 public async Task HandleAsync(AddOrUpdateEntityCommand <TEntity> command)
 {
     await _crudService.AddOrUpdateAsync(command.Entity);
 }