Пример #1
0
 public ActionResult Activate(string themeName)
 {
     _themeManager.ActivateTheme(themeName);
     NetCoreCmsHost.IsRestartRequired = true;
     TempData["ThemeSuccessMessage"]  = "Theme " + themeName + " Activated Successfully.";
     return(RedirectToAction("Index"));
 }
Пример #2
0
        public ActionResult Activate(string themeName)
        {
            _themeManager.ActivateTheme(themeName);
            NetCoreCmsHost.IsRestartRequired = true;
            string successMessage = "Theme " + themeName + " Activated Successfully.";

            TempData["ThemeSuccessMessage"] = successMessage;
            FireEvent(ThemeActivity.Type.Activated, GlobalContext.GetThemeByName(themeName));
            return(RedirectToAction("Index"));
        }