Carrotware.CMS.Core.CannedQueries.GetContentByCategoryIDs C# (CSharp) Method

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

Same methods

CannedQueries::GetContentByCategoryIDs ( CarrotCMSDataContext ctx, Guid siteID, bool bActiveOnly, List lstCategoryGUIDs, List lstCategorySlugs ) : IQueryable

Usage Example

Ejemplo 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));
        }
All Usage Examples Of Carrotware.CMS.Core.CannedQueries::GetContentByCategoryIDs