//------------------------------------------------------------------------------ public virtual void CountEventCategoryAssocByUuid() { string _uuid = (string)util.GetParamValue(_context, "uuid"); ResponseEventCategoryAssocInt wrapper = new ResponseEventCategoryAssocInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "event-category-assoc/count/by-uuid"; int i = api.CountEventCategoryAssocByUuid( _uuid ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }
//------------------------------------------------------------------------------ public virtual void CountEventCategoryAssoc() { ResponseEventCategoryAssocInt wrapper = new ResponseEventCategoryAssocInt(); wrapper.message = "Success"; wrapper.code = 0; wrapper.action = "event-category-assoc/count"; int i = api.CountEventCategoryAssoc( ); // get data wrapper.data = i; util.SerializeTypeToResponse(_format, _context, wrapper); }