Olbrasoft.Data.Paging.X.PagedList.AspNetCore.Mvc
Inspiration repository https://github.com/hieudole/PagedList.Core.Mvc
Reason asimilation repository are dependent on https://github.com/troygoode/PagedList is obsolete .
-
Install-Package Olbrasoft.Data.Paging.X.PagedList.AspNetCore.Mvc
-
Edit
_ViewImports.cshtml
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+ @addTagHelper *, Olbrasoft.Data.Paging.X.PagedList.AspNetCore.Mvc
<pager class="pager-container" list="@Model.SearchResult.SearchHits" options="@PagedListRenderOptions.Bootstrap4" asp-action="Index" asp-controller="Search" asp-route-query="@Model.SearchResult.SearchQuery" />