public async Task SaveSettings(DTO.UserSettingsDto userSettings) { await Task.Factory.StartNew(() => { UserSettings.Instance.SaveToSoup(userSettings); }); }
public JObject SaveToSoup(DTO.UserSettingsDto settings) { var sync = JObject.FromObject(settings); SetupSyncsSoupIfNotExistsNeeded(); return(_store.Upsert(SoupName, sync, "UserId")); }