/// <summary> /// Inits the sight info. /// </summary> /// <param name="str">The STR.</param> /// <param name="pageIndex">Index of the page.</param> /// <param name="pageSize">Size of the page.</param> /// <returns></returns> public SearchInfoDto GetSearchModel(string str, int? pageIndex, int? pageSize) { SearchInfoDto data = new SearchInfoDto(); Miaow.Infrastructure.Crosscutting.Comm.Service.SightInfoSearchService sightInfoService = new Infrastructure.Crosscutting.Comm.Service.SightInfoSearchService(); var sortCity = sightInfoService.GetSearchModel(str); data.SightInfoList = AddSortSightInfoByGlobal(sortCity.ToList(), (int)pageIndex, (int)pageSize) .AsQueryable().ToPagedList(pageIndex ?? 1, pageSize ?? 10); return data; }
/// <summary> /// Inits the sight info. /// </summary> /// <param name="str">The STR.</param> /// <param name="pageIndex">Index of the page.</param> /// <param name="pageSize">Size of the page.</param> /// <returns></returns> public SearchInfoDto GetSearchModel(string str, int?pageIndex, int?pageSize) { SearchInfoDto data = new SearchInfoDto(); iPow.Infrastructure.Crosscutting.Comm.Service.SightInfoSearchService sightInfoService = new Infrastructure.Crosscutting.Comm.Service.SightInfoSearchService(); var sortCity = sightInfoService.GetSearchModel(str); data.SightInfoList = AddSortSightInfoByGlobal(sortCity.ToList(), (int)pageIndex, (int)pageSize) .AsQueryable().ToPagedList(pageIndex ?? 1, pageSize ?? 10); return(data); }