Example #1
0
        private void DisplayFeatured(College school)
        {
            int featured = school.GetFeaturedListing();

            if (featured < 0)
            {
                return;
            }

            Advertisement ad = Database.GetAd(featured);

            if (ad == null || ad.Deleted || ad.IsExpired() || !ad.HasAnImage())
            {
                return;
            }

            DisplayFeaturedListing(ad);
        }