Esempio n. 1
0
 public async Task<bool> SaveSettings(SettingsModel settings)
 {
     SettingsCache.SetNeedRefresh();
     return await DBService.SaveSettings(SettingToStorage(settings)).ConfigureAwait(false);
 }
Esempio n. 2
0
 private SettingsStorageModel SettingToStorage(SettingsModel settings)
 {
     return new SettingsStorageModel
     {
         ProfileId = 0,
         SettingId = settings.SettingId,
         SettingName = settings.SettingName,
         SettingValue = string.IsNullOrEmpty(settings.SettingStringValue) ? settings.SettingBoolValue.ToString() : settings.SettingStringValue
     };
 }