Beispiel #1
0
        public ActionResult SuggestSearchResult(SuggestionsSearchModel searchModel)
        {
            var totalCount = 0;
            var result     = SuggestBusiness.SearchSuggestInfoList(searchModel, out totalCount);
            var page       = new Page(totalCount, searchModel.CurrentPage);

            var model = new SuggestionsSearchResultModel
            {
                SearchResultModel = result.Skip((page.CurrentPage - 1) * page.PageSize).Take(page.PageSize),
                Page = page
            };

            return(View(model));
        }