private void SaveDiscountProductInfo(HttpContext context)
        {
            decimal num3;
            decimal num4;
            decimal num5;
            int     num  = Globals.RequestFormNum("ProductId");
            int     num2 = Globals.RequestFormNum("LimitedTimeDiscountId");

            decimal.TryParse(Globals.RequestFormStr("Discount"), out num3);
            decimal.TryParse(Globals.RequestFormStr("Minus"), out num4);
            decimal.TryParse(Globals.RequestFormStr("FinalPrice"), out num5);
            LimitedTimeDiscountProductInfo info = new LimitedTimeDiscountProductInfo {
                ProductId             = num,
                LimitedTimeDiscountId = num2,
                Discount   = num3,
                Minus      = num4,
                FinalPrice = num5
            };

            if (LimitedTimeDiscountHelper.UpdateLimitedTimeDiscountProduct(info))
            {
                context.Response.Write("{\"msg\":\"success\"}");
            }
            else
            {
                context.Response.Write("{\"msg\":\"fial\"}");
            }
        }
        private void SaveDiscountProductInfo(System.Web.HttpContext context)
        {
            int     productId             = Globals.RequestFormNum("ProductId");
            int     limitedTimeDiscountId = Globals.RequestFormNum("LimitedTimeDiscountId");
            decimal discount;

            decimal.TryParse(Globals.RequestFormStr("Discount"), out discount);
            decimal minus;

            decimal.TryParse(Globals.RequestFormStr("Minus"), out minus);
            decimal finalPrice;

            decimal.TryParse(Globals.RequestFormStr("FinalPrice"), out finalPrice);
            if (LimitedTimeDiscountHelper.UpdateLimitedTimeDiscountProduct(new LimitedTimeDiscountProductInfo
            {
                ProductId = productId,
                LimitedTimeDiscountId = limitedTimeDiscountId,
                Discount = discount,
                Minus = minus,
                FinalPrice = finalPrice
            }))
            {
                context.Response.Write("{\"msg\":\"success\"}");
                return;
            }
            context.Response.Write("{\"msg\":\"fial\"}");
        }