GetTagURLs() static private method

static private GetTagURLs ( CarrotCMSDataContext ctx, Guid siteID ) : IQueryable
ctx CarrotCMSDataContext
siteID Guid
return IQueryable
Ejemplo n.º 1
0
        public List <IContentMetaInfo> GetTagList(Guid siteID, int iUpdates)
        {
            List <IContentMetaInfo> lstContent = (from ct in CannedQueries.GetTagURLs(db, siteID)
                                                  where ct.IsPublic == true
                                                  orderby ct.UseCount descending
                                                  select(IContentMetaInfo) new ContentTag(ct)).Take(iUpdates).ToList();

            return(lstContent);
        }