public ActionResult Index(int totalRecords = 0, int page = 1, int pageSize = 10) { var Users = mapper.ConvertUsersToWeb(_UsersBusinessLogic.GetUsers(out totalRecords, page, pageSize)); UserUIViewModel model = new UserUIViewModel(); List <UsersViewModel> List = new List <UsersViewModel>(); var urlStringFormat = string.Format("{0}?page={1}", Url.Action("LoadResultsPage"), "{0}"); List = Users; var pagedList = List.ToPagedListModel(totalRecords, page, pageSize, urlStringFormat); model.Users = pagedList; return(View(model)); }