コード例 #1
0
ファイル: HomeController.cs プロジェクト: wakcie1/Test
        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));
        }
コード例 #2
0
        public static IEnumerable <ProblemInfoModel> ProblemSearchResult(ProblemSearchModel searchModel, out int totalCount)
        {
            var data = _problemDal.ProblemSearchResultPage(searchModel, out totalCount);

            return(data);
        }