public List <ISearchResult> GetSearchResults(ISearch searchParameters) { var searchResults = new List <ISearchResult>(); if (searchParameters.SearchOptions.IsToolTitleSelected) { var activityCache = _resourceCatalog.GetResourceActivityCache(GlobalConstants.ServerWorkspaceID); if (activityCache != null) { foreach (var resourceActivity in activityCache.Cache) { searchResults.AddRange(ProcessActivitiesForResource(searchParameters, resourceActivity)); } } } return(searchResults); }