public ActionResult Base(vConfig Config) { ConfigurationManager.AppSettings["VerifyProductComment"] = Config.VerifyProductComment ? "true" : "false"; ConfigurationManager.AppSettings["VerifyService"] = Config.VerifyService ? "true" : "false"; ConfigurationManager.AppSettings["VerifyLocalTong"] = Config.VerifyLocalTong ? "true" : "false"; ConfigurationManager.AppSettings["VerifyLocalTongComment"] = Config.VerifyLocalTongComment ? "true" : "false"; ConfigurationManager.AppSettings["InformationComment"] = Config.InformationComment ? "true" : "false"; ConfigurationManager.AppSettings["VerifyInformationComment"] = Config.VerifyInformationComment ? "true" : "false"; ConfigurationManager.AppSettings["ServiceTel"] = Config.ServiceTel; return(RedirectToAction("Success", "Shared", null)); }
/// <summary> /// 基本信息设置 /// </summary> /// <returns></returns> public ActionResult Index() { var config = new vConfig { InformationComment = ViewBag.InformationComment, ServiceTel = ViewBag.ServiceTel, VerifyLocalTong = ViewBag.VerifyLocalTong, VerifyLocalTongComment = ViewBag.VerifyLocalTongComment, VerifyProductComment = ViewBag.VerifyProductComment, VerifyService = ViewBag.VerifyService, VerifyInformationComment = ViewBag.VerifyInformationComment }; return(View(config)); }