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)); }
public static IEnumerable <ProblemInfoModel> ProblemSearchResult(ProblemSearchModel searchModel, out int totalCount) { var data = _problemDal.ProblemSearchResultPage(searchModel, out totalCount); return(data); }