Example #1
0
        public IEnumerable <ISiteLink> GetSiteLinks(int siteId, SiteLinkType type)
        {
            IList <ISiteLink> links = new List <ISiteLink>();

            linkDal.GetAllSiteLinks(siteId, type, rd =>
            {
                while (rd.Read())
                {
                    links.Add(this.ConvertToILink(siteId, rd));
                }
            });
            return(links);
        }