public ActionResult GetCouponRecordBySerialNumber()
        {
            string serialNumber = Request.QueryString["serialNumber"];

            if (String.IsNullOrEmpty(serialNumber))
            {
                return(RespondResult(false, "参数无效。"));
            }

            CouponRecordEntity couponRecord = _couponManager.GetCouponRecordBySerialNumber(
                DomainContext.Domain.Id, DomainContext.AppId, serialNumber);

            if (couponRecord == null)
            {
                return(RespondResult(false, "卡券不存在。"));
            }
            else
            {
                CouponEntity coupon = _couponManager.GetCoupon(couponRecord.Coupon);
                return(RespondDataResult(new
                {
                    Coupon = coupon,
                    CouponRecord = couponRecord
                }));
            }
        }
        public CouponRecordEntity CouponRecord(Guid id)
        {
            CouponRecordEntity couponRecord = new CouponRecordEntity();

            couponRecord.Id = id;

            if (_dataBase.Fill <CouponRecordEntity>(couponRecord))
            {
                return(couponRecord);
            }
            else
            {
                return(null);
            }
        }