public PageNavigator <User> List(int start, int size, int navigatePages) { List <User> allUserList = userRepository.List(); List <User> pageUserList = userRepository.List(start, size); Page <User> page = PageUtil <User> .CalcPage(start, size, navigatePages, pageUserList, allUserList); return(new PageNavigator <User>(page)); }