Beispiel #1
0
        public async Task ProcessAsync(ProcessStepViewModel model)
        {
            var stepper = await this.Find(model.Id);

            await this.messageBus.PublishAsync(WorkItemMessage.Create(
                                                   model.Trigger,
                                                   stepper.Id,
                                                   stepper.Type
                                                   ));
        }
Beispiel #2
0
        public async Task Process([FromBody] ProcessStepViewModel model)
        {
            if (model == null)
            {
                BadRequest();
            }
            if (!this.ModelState.IsValid)
            {
                BadRequest(this.ModelState);
            }

            await this.service.ProcessAsync(model);

            Ok();
        }