private PersonRegisterListResultViewData GetPersonListViewData(SearchRequest searchRequest) { var viewData = new PersonRegisterListResultViewData(); var list = PersonRegister.GetPersonRegisterList(searchRequest); viewData.PersonList = list.Persons; viewData.ListCount = list.ListCount; viewData.PageCount = list.PageCount; viewData.CurrentPage = list.CurrentPage; viewData.FirstPage = list.FirstPage; viewData.LastPage = list.LastPage; viewData.SearchRequest = searchRequest; return(viewData); }