コード例 #1
0
        public async Task <IActionResult> PostClient(string app, [FromBody] CreateClientDto request)
        {
            var command = request.ToCommand();

            await CommandBus.PublishAsync(command);

            var response = ClientDto.FromCommand(command);

            return(CreatedAtAction(nameof(GetClients), new { app }, response));
        }