Exemplo n.º 1
0
        public static IEnumerable <AdModel> GetAllFooterAds()
        {
            var ads = StoredProcs.Ads_GetAds().Execute();

            return(ads.Select(ad => new AdModel {
                Id = ad.Ad_Id, BodyHtml = ad.Ad_Html
            }));
        }