static private GetContentByCategoryIDs ( CarrotCMSDataContext ctx, Guid siteID, bool bActiveOnly, List |
||
ctx | CarrotCMSDataContext | |
siteID | Guid | |
bActiveOnly | bool | |
lstCategories | List |
|
return | IQueryable |
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)); }
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()); }