public IEnumerable <AdvertisingModel> GetAdvertising(int numberOfAd) { AdRepository repository = new AdRepository(); return(repository.GetAdvertising(numberOfAd)); }