Rock.Model.GroupService.GetGeofencingGroups C# (CSharp) Method

GetGeofencingGroups() public method

Gets the groups of a particular type that geofence the selected person's mapped location(s)
public GetGeofencingGroups ( int personId, System.Guid groupTypeGuid ) : IQueryable
personId int The person identifier.
groupTypeGuid System.Guid The group type unique identifier.
return IQueryable
        public IQueryable<Group> GetGeofencingGroups( int personId, Guid groupTypeGuid )
        {
            var rockContext = (RockContext)this.Context;
            var personService = new PersonService( rockContext );
            var personGeopoints = personService.GetGeopoints( personId );
            return GetGeofencingGroups( personGeopoints, groupTypeGuid );
        }

Same methods

GroupService::GetGeofencingGroups ( IQueryable points, System.Guid groupTypeGuid ) : IQueryable
GroupService::GetGeofencingGroups ( IQueryable points, int groupTypeId ) : IQueryable
GroupService::GetGeofencingGroups ( int personId, int groupTypeId ) : IQueryable