Example #1
0
        public async Task <IActionResult> PutPattern(string app, Guid id, [FromBody] UpdatePatternDto request)
        {
            var command = request.ToUpdateCommand(id);

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
Example #2
0
        public async Task <IActionResult> UpdatePattern(string app, Guid id, [FromBody] UpdatePatternDto request)
        {
            await CommandBus.PublishAsync(request.ToUpdateCommand(id));

            return(NoContent());
        }