public async Task DeleteAsync(WorkflowSetting entity, CancellationToken cancellationToken = default)
        {
            await _mediator.Publish(new WorkflowSettingsDeleting(entity), cancellationToken);

            await _store.DeleteAsync(entity, cancellationToken);

            await _mediator.Publish(new WorkflowSettingsDeleted(entity), cancellationToken);
        }
예제 #2
0
        public async Task <IActionResult> Handle(string id, CancellationToken cancellationToken = default)
        {
            var workflowSettings = await _workflowSettingsStore.FindByIdAsync(id, cancellationToken);

            if (workflowSettings == null)
            {
                return(NotFound());
            }

            await _workflowSettingsStore.DeleteAsync(workflowSettings, cancellationToken);

            return(NoContent());
        }
 public Task DeleteAsync(WorkflowSetting entity, CancellationToken cancellationToken) => _store.DeleteAsync(entity, cancellationToken);