public IIterator Filter( FilterRequest.CountryRequest country, IdStorage ids, CountryStorage countries) { if (country.IsNull.HasValue) { if (country.IsNull.Value) { return(country.Eq == null ? _null.GetIterator() : ListHelper.EmptyInt); } } if (country.Eq == null) { return(_ids.GetIterator()); } short countryId = countries.Get(country.Eq); if (_id2AccId[countryId] != null) { return(_id2AccId[countryId].GetIterator()); } else { return(ListHelper.EmptyInt); } }
public IEnumerable <int> Filter( GroupRequest.CountryRequest country, CountryStorage countries) { short countryId = countries.Get(country.Country); if (_id2AccId[countryId] != null) { return(_id2AccId[countryId]); } else { return(Enumerable.Empty <int>()); } }