コード例 #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"));
        }