public ActionResult DiscountRuleManager() { int pageType = Context.GetRequestInt("pageType", 0); //根据aid,storeId读取不同模板下的开关配置 string errorMsg = string.Empty; CommonSetting commonSetting = CommonSettingBLL.GetCommonSetting(_appId, ref _storeId, ref errorMsg); if (!string.IsNullOrWhiteSpace(errorMsg)) { return(Redirect($"/base/PageErrorMsg?code=500&Msg={errorMsg}")); //提示报错页 } ViewBag.aId = ViewBag.appId = _appId; ViewBag.storeId = _storeId; ViewBag.pageType = pageType; ViewBag.maxRulesCount = maxRulesCount; return(View(commonSetting)); }
public ActionResult ClearRedis(string key) { bool isSuccess = CommonSettingBLL.RemoveRedis(key); return(Json(new { isSuccess = isSuccess }, JsonRequestBehavior.AllowGet)); }