Exemplo n.º 1
0
        public OxiteViewModelItems <ISearchResult> List(PagingInfo pagingInfo, SearchCriteria criteria)
        {
            IPageOfItems <ISearchResult> searchResults = criteria.HasCriteria() ? searchPostService.GetSearchResults(pagingInfo, criteria) : null;

            return(new OxiteViewModelItems <ISearchResult>(searchResults)
            {
                Container = new SearchPageContainer()
            });
        }
Exemplo n.º 2
0
        public OxiteViewModelItems <ISearchResult> List(int?pageNumber, int pageSize, SearchCriteria criteria)
        {
            int pageIndex = pageNumber.HasValue ? pageNumber.Value - 1 : 0;
            IPageOfItems <ISearchResult> searchResults = criteria.HasCriteria() ? searchPostService.GetSearchResults(pageIndex, pageSize, criteria) : null;

            return(new OxiteViewModelItems <ISearchResult>(searchResults)
            {
                Container = new SearchPageContainer()
            });
        }