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

GetByIsSecurityRole() public method

Returns an enumerable collection of Groups by their IsSecurityRole flag.
public GetByIsSecurityRole ( bool isSecurityRole ) : IQueryable
isSecurityRole bool A representing the IsSecurityRole flag value to search by.
return IQueryable
        public IQueryable<Group> GetByIsSecurityRole( bool isSecurityRole )
        {
            return Queryable().Where( t => t.IsSecurityRole == isSecurityRole );
        }