Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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);
 }