public ActionResult SetConfig(FlashSaleConfigModel data)
        {
            _iLimitTimeBuyService.UpdateConfig(data);
            Result result = new Result {
                success = true
            };

            return(Json(result));
        }
Beispiel #2
0
        public ActionResult SetConfig(FlashSaleConfigModel data)
        {
            _iLimitTimeBuyService.UpdateConfig(data);
            var isneedaudit = bool.Parse(Request.Form["isneedaudit"]);
            var setting     = SiteSettingApplication.SiteSettings;

            setting.LimitTimeBuyNeedAuditing = isneedaudit;
            SiteSettingApplication.SaveChanges();
            Result result = new Result {
                success = true
            };

            return(Json(result));
        }