public async Task SaveSettings(DTO.UserSettingsDto userSettings)
 {
     await Task.Factory.StartNew(() =>
     {
         UserSettings.Instance.SaveToSoup(userSettings);
     });
 }
示例#2
0
        public JObject SaveToSoup(DTO.UserSettingsDto settings)
        {
            var sync = JObject.FromObject(settings);

            SetupSyncsSoupIfNotExistsNeeded();
            return(_store.Upsert(SoupName, sync, "UserId"));
        }