示例#1
0
        public async Task <IActionResult> PutCategory(string app, string name, [FromBody] ChangeCategoryDto request)
        {
            var command = request.ToCommand();

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
示例#2
0
        public async Task <IActionResult> PutCategory(string app, string name, [FromBody] ChangeCategoryDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand());

            return(NoContent());
        }