public object Save(UIDefinitionUpdate update) { var def = Newtonsoft.Json.JsonConvert.DeserializeObject<UIDefinition>(update.Raw); var existing = _uiService.GetByName(def.Name); if (existing == null) throw new NotImplementedException("Creating UI Definitions from the ui is not supported yet"); _uiService.Update(def); return new { success = true }; }
public object Save(UIDefinitionUpdate update) { var def = Newtonsoft.Json.JsonConvert.DeserializeObject <UIDefinition>(update.Raw); var existing = _uiService.GetByName(def.Name); if (existing == null) { throw new NotImplementedException("Creating UI Definitions from the ui is not supported yet"); } _uiService.Update(def); return(new { success = true }); }