public void LoadAds() { switch (AdsQueryType) { case AdsQueryType.AllAds: Ads = _mgr.GetAds(SortExpression, Pager.PageIndex, Pager.PageSize, SortExpression, SortDirection); break; case AdsQueryType.AdsInCover: Ads = _mgr.GetAdsInCover(SortExpression, Pager.PageIndex, Pager.PageSize, SortExpression, SortDirection); break; case AdsQueryType.Top5Ads: Ads = _mgr.GetTop5Ads(); break; case AdsQueryType.Top5Brands: Ads = null; break; } }