private void LoadData(Document document) { //get XML string from entity if if exists in there var field = _schema.GetField(FieldNameData); var xmlString = _entity.Get <String>(field); _data = String.IsNullOrEmpty(xmlString) ? new ProjectSettingsData() : SerializationHelper.Deserialize <ProjectSettingsData>(xmlString); }
public async Task UpdateProjectSettings(ProjectSettingsData projectSettings) { await _client.PutJsonAsync($"/api/projects", projectSettings); }
private void LoadData(Document document) { //get XML string from entity if if exists in there var field = _schema.GetField(FieldNameData); var xmlString = _entity.Get<String>(field); _data = String.IsNullOrEmpty(xmlString) ? new ProjectSettingsData() : SerializationHelper.Deserialize<ProjectSettingsData>(xmlString); }