Rock.Model.GroupMemberService.GetLeaders C# (CSharp) Method

GetLeaders() public method

Gets the active leaders of the group
public GetLeaders ( int groupId ) : IQueryable
groupId int The group identifier.
return IQueryable
        public IQueryable<GroupMember> GetLeaders( int groupId )
        {
            return GetByGroupId( groupId, false )
                .Where( t =>
                    t.GroupMemberStatus == GroupMemberStatus.Active &&
                    t.GroupRole.IsLeader );
        }