GetContentSiteSearch() static private method

static private GetContentSiteSearch ( CarrotCMSDataContext ctx, Guid siteID, bool bActiveOnly, string searchTerm ) : IQueryable
ctx CarrotCMSDataContext
siteID Guid
bActiveOnly bool
searchTerm string
return IQueryable
示例#1
0
        public List <SiteNav> GetLatestContentSearchList(Guid siteID, string searchTerm, bool bActiveOnly, int pageSize, int pageNumber, string sortField, string sortDir)
        {
            IQueryable <vw_carrot_Content> query1 = CannedQueries.GetContentSiteSearch(db, siteID, bActiveOnly, searchTerm);

            return(PerformDataPagingQueryableContent(siteID, bActiveOnly, pageSize, pageNumber, sortField, sortDir, query1));
        }
示例#2
0
        public int GetSiteSearchCount(Guid siteID, string searchTerm, bool bActiveOnly)
        {
            IQueryable <vw_carrot_Content> query1 = CannedQueries.GetContentSiteSearch(db, siteID, bActiveOnly, searchTerm);

            return(query1.Count());
        }