Exemple #1
0
 public static async Task MapReferencesAsync(this SynchronizeSchemaDto schema, Dictionary <string, string> map)
 {
     foreach (var field in schema.Fields ?? Enumerable.Empty <UpsertSchemaFieldDto>())
     {
         await MapReferencesAsync(field, map);
     }
 }
Exemple #2
0
 public static async Task MapFoldersAsync(this SynchronizeSchemaDto schema, FolderTree folders, bool fromId)
 {
     foreach (var field in schema.Fields ?? Enumerable.Empty <UpsertSchemaFieldDto>())
     {
         await field.MapFoldersAsync(folders, fromId);
     }
 }
        public async Task <IActionResult> PutSchemaSync(string app, string name, [FromBody] SynchronizeSchemaDto request)
        {
            var command = request.ToCommand();

            var response = await InvokeCommandAsync(command);

            return(Ok(response));
        }
 private void MapReferences(SynchronizeSchemaDto schema, Dictionary <string, string> map)
 {
     if (schema.Fields != null)
     {
         foreach (var field in schema.Fields)
         {
             MapReferences(field, map);
         }
     }
 }
        public async Task <IActionResult> PutSchemaSync(string app, string name, [FromBody] SynchronizeSchemaDto request)
        {
            await CommandBus.PublishAsync(request.ToCommand());

            return(NoContent());
        }