Rock.Model.GroupLocationService.GetByLocation C# (CSharp) Method

GetByLocation() public method

Returns an enumerable collection of GroupLocations by their LocationId.
public GetByLocation ( int locationId ) : IQueryable
locationId int A representing the Id of a to search by.
return IQueryable
        public IQueryable<GroupLocation> GetByLocation( int locationId )
        {
            return Queryable().Where( g => g.LocationId == locationId );
        }