GetContentByCategoryIDs() static private method

static private GetContentByCategoryIDs ( CarrotCMSDataContext ctx, Guid siteID, bool bActiveOnly, List lstCategories ) : IQueryable
ctx CarrotCMSDataContext
siteID Guid
bActiveOnly bool
lstCategories List
return IQueryable
Esempio n. 1
0
        public List <SiteNav> GetFilteredContentByIDPagedList(SiteData currentSite, List <Guid> lstCategoryGUIDs, List <string> lstCategorySlugs, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir)
        {
            Guid siteID = currentSite.SiteID;

            IQueryable <vw_carrot_Content> query1 = CannedQueries.GetContentByCategoryIDs(db, siteID, bActiveOnly, lstCategoryGUIDs, lstCategorySlugs);

            return(PerformDataPagingQueryableContent(siteID, bActiveOnly, pageSize, pageNumber, sortField, sortDir, query1));
        }
Esempio n. 2
0
        public int GetFilteredContentByIDPagedCount(SiteData currentSite, List <Guid> lstCategoryGUIDs, List <string> lstCategorySlugs, bool bActiveOnly)
        {
            Guid siteID = currentSite.SiteID;

            IQueryable <vw_carrot_Content> query1 = CannedQueries.GetContentByCategoryIDs(db, siteID, bActiveOnly, lstCategoryGUIDs, lstCategorySlugs);

            return(query1.Count());
        }