示例#1
0
        // GET: Settings/Districts
        public ActionResult Index(SearchDistrictViewModel searchDistrictModel)
        {
            var result = _placesService.GetDistricts(searchDistrictModel);

            searchDistrictModel.Items = new StaticPagedList <DistrictViewModel>(result.Items
                                                                                , searchDistrictModel.PageIndex + 1, searchDistrictModel.PageSize, result.TotalCount);
            return(View(searchDistrictModel));
        }