Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteAssetFolder(string app, Guid id)
        {
            await CommandBus.PublishAsync(new DeleteAssetFolder { AssetFolderId = id });

            return(NoContent());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> DeleteSchema(string app, string name)
        {
            await CommandBus.PublishAsync(new DeleteSchema());

            return(NoContent());
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> DeleteSchema(string app, string name, Guid id)
        {
            await CommandBus.PublishAsync(new DeleteWebhook { Id = id });

            return(NoContent());
        }
Ejemplo n.º 4
0
        public async Task <IActionResult> ChangePlanAsync(string app, [FromBody] ChangePlanDto request)
        {
            await CommandBus.PublishAsync(SimpleMapper.Map(request, new ChangePlan()));

            return(NoContent());
        }
Ejemplo n.º 5
0
        public async Task <IActionResult> DeleteNestedField(string app, string name, long parentId, long id)
        {
            await CommandBus.PublishAsync(new DeleteField { ParentFieldId = parentId, FieldId = id });

            return(NoContent());
        }
Ejemplo n.º 6
0
        public async Task <IActionResult> DisableField(string app, string name, long id)
        {
            await CommandBus.PublishAsync(new DisableField { FieldId = id });

            return(NoContent());
        }
Ejemplo n.º 7
0
        public async Task <IActionResult> PutNestedField(string app, string name, long parentId, long id, [FromBody] UpdateFieldDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand(id, parentId));

            return(NoContent());
        }
Ejemplo n.º 8
0
        public async Task <IActionResult> PutNestedFieldOrdering(string app, string name, long parentId, [FromBody] ReorderFieldsDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand(parentId));

            return(NoContent());
        }