Exemple #1
0
        public ActionResult HomeSearchResult(ProblemSearchModel searchModel = null)
        {
            var totalCount = 0;
            var result     = ProblemBusiness.ProblemSearchResult(searchModel, out totalCount);
            var page       = new Page(totalCount, searchModel.CurrentPage);

            var model = new ProblemSearchResultModel
            {
                Models = result,
                Page   = page
            };

            return(View(model));
        }
Exemple #2
0
        public static IEnumerable <ProblemInfoModel> ProblemSearchResult(ProblemSearchModel searchModel, out int totalCount)
        {
            var data = _problemDal.ProblemSearchResultPage(searchModel, out totalCount);

            return(data);
        }