Rock.Model.UserLoginService.GetByApiKey C# (CSharp) Method

GetByApiKey() public method

Returns an enumerable collection of Rock.Model.UserLogin entities by their API Key.
public GetByApiKey ( string apiKey ) : IQueryable
apiKey string A representing the API key to search by.
return IQueryable
        public IQueryable<UserLogin> GetByApiKey( string apiKey )
        {
            return Queryable().Where( t => ( t.ApiKey == apiKey || ( apiKey == null && t.ApiKey == null ) ) );
        }