Как это исправить? Я включил X.PagedList.Mvc.Core "Version =" 7.6.0 "
<p>Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber) of @Model.PageCount</p>
@Html.PagedListPager(
(X.PagedList.IPagedList)ViewBag.OnePageOfProducts, page => Url.Action("Index", new { page = page }),
new PagedListRenderOptions { LiElementClasses = new string[] { "page-item" },
PageClasses = new string[] { "page-link" }