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)); }
public async Task <IActionResult> PutClient(string app, string clientId, [FromBody] UpdateClientDto request) { await CommandBus.PublishAsync(request.ToCommand(clientId)); return(NoContent()); }