Exemplo n.º 1
0
        public async Task SetTheme(SetThemeInput input)
        {
            var theme = await _themeManager.GetTheme(input.ThemeId, _server);

            await _settingStore.UpdateAsync(Settings.ThemeInitialConfig(TenantId, theme.ThemeUniqueName));

            var themeFromFile = await _themeManager.GetThemeByThemeName(input.ThemeId, HttpContext.Current.Server);

            _pymeManager.SetMainPageContent(themeFromFile, input.KeepOldData);
        }