Exemplo n.º 1
0
        public async Task <IActionResult> PutClient(string app, string id, [FromBody] UpdateClientDto request)
        {
            var command = request.ToCommand(id);

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> PutClient(string app, string clientId, [FromBody] UpdateClientDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand(clientId));

            return(NoContent());
        }