public ActionResult Index() { int total; var items = _service.GetAll(out total, 1, PageSize); var pagedList = new StaticPagedList <T>(items, 1, DependencyConfig.GlobalPageSize, total); var itemsIndexModel = new PagedListModel <T> { List = pagedList, Total = total }; return(View(itemsIndexModel)); }