public ActionResult Activate(string themeName) { _themeManager.ActivateTheme(themeName); NetCoreCmsHost.IsRestartRequired = true; TempData["ThemeSuccessMessage"] = "Theme " + themeName + " Activated Successfully."; return(RedirectToAction("Index")); }
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")); }