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); }