public ActionResult GetListPages(StandardCategory currentContent, Pagination pagination)
        {
            var categories = new List <ContentReference> {
                currentContent.ContentLink
            };

            pagination.Categories = categories;
            var model = new CategorySearchViewModel(currentContent);

            model.SearchResults = _searchService.SearchByCategory(pagination);
            return(PartialView("_PageListing", model));
        }
Exemplo n.º 2
0
        public ActionResult Index(StandardCategory currentContent, Pagination pagination)
        {
            var categories = new List <ContentReference> {
                currentContent.ContentLink
            };

            pagination.Categories = categories;
            var model = new CategorySearchViewModel(currentContent)
            {
                SearchResults = _searchService.SearchByCategory(pagination)
            };

            return(View(model));
        }