//------------------------------------------------------------------------------ public virtual void CountRewardConditionTypeByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseRewardConditionTypeInt wrapper = new ResponseRewardConditionTypeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "reward-condition-type/count/by-uuid"; int i = api.CountRewardConditionTypeByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountRewardConditionType() { ResponseRewardConditionTypeInt wrapper = new ResponseRewardConditionTypeInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "reward-condition-type/count"; int i = api.CountRewardConditionType( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }