GetContentSiteSearch() статический приватный Метод

static private GetContentSiteSearch ( CarrotCMSDataContext ctx, Guid siteID, bool bActiveOnly, string searchTerm ) : IQueryable
ctx CarrotCMSDataContext
siteID Guid
bActiveOnly bool
searchTerm string
Результат 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());
        }