//------------------------------------------------------------------------------ public virtual void CountProfileCouponByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseProfileCouponInt wrapper = new ResponseProfileCouponInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-coupon/count/by-uuid"; int i = api.CountProfileCouponByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountProfileCoupon() { ResponseProfileCouponInt wrapper = new ResponseProfileCouponInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "profile-coupon/count"; int i = api.CountProfileCoupon( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }