Exemplo n.º 1
0
        public async Task UpdateAllSettingsAsync(UpdateThemeSettingsInput input)
        {
            if (CurrentUser.Id != null)
            {
                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.NavTheme, input.NavTheme);

                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.Layout, input.Layout);

                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.ContentWidth,
                                                      input.ContentWidth);

                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.FixedHeader,
                                                      input.FixedHeader.ToString());

                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.AutoHideHeader,
                                                      input.AutoHideHeader.ToString());

                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.FixSiderbar,
                                                      input.FixSiderbar.ToString());

                await _settingManager.SetForUserAsync(CurrentUser.Id.Value, ThemeSettingNames.ColorWeak,
                                                      input.ColorWeak.ToString());
            }
        }
 public async Task UpdateAllSettingsAsync(UpdateThemeSettingsInput input)
 {
     await _themeSettingAppService.UpdateAllSettingsAsync(input);
 }