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

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
示例#2
0
        public async Task <IActionResult> PutSchemaFieldOrdering(string app, string name, [FromBody] ReorderFieldsDto request)
        {
            var command = request.ToCommand();

            var response = await InvokeCommandAsync(app, command);

            return(Ok(response));
        }
示例#3
0
        public async Task <IActionResult> PutNestedFieldOrdering(string app, string name, long parentId, [FromBody] ReorderFieldsDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand(parentId));

            return(NoContent());
        }