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