private async Task PostProperties(string component, Dictionary <string, Property> dict) { foreach (var kv in dict) { kv.Value.Name = kv.Key; kv.Value.Component = component; await _componentService.AddProperty(component, kv.Value); } }