public IEnumerable <Catalog> GetFilteredCatalogs() { _measureRepository.RefreshData(); ICollection <Catalog> filteredCatalogs = new Collection <Catalog>(); var catalogs = _measureRepository.Catalogs; if (catalogs != null) { foreach (var catalog in catalogs) { if (_dbContext.SelectedCatalogs.Any(c => c.OrkHubId == catalog.Id)) { filteredCatalogs.Add(catalog); } } return(filteredCatalogs); } return(null); }