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

GetByGroupTypeId() public method

Returns an enumerable collection of Rock.Model.Group entities that by their Rock.Model.GroupType Id.
public GetByGroupTypeId ( int groupTypeId ) : IQueryable
groupTypeId int An representing the Id of the that they belong to.
return IQueryable
        public IQueryable<Group> GetByGroupTypeId( int groupTypeId )
        {
            return Queryable().Where( t => t.GroupTypeId == groupTypeId );
        }