0
I am building a small project in Asp.net MVC and I need to make use of the X.Pagedlist library, I was able to make the pagination all right, but it is not applying the Bootstrap, which should be standard.
Calling the pagination in the View:
<div class="justify-content-center">
@Html.PagedListPager(Model, pages => Url.Action("Index", new { pages}))
</div>
Controller:
// GET: Produto
public ActionResult Index(int? pages)
{
int pagNumber = (pages ?? 1);
var produtos = TodosProdutos.ToPagedList(pages, 9);
return View(produtos);
}
References from the View:
@using X.PagedList.Mvc;
@model X.PagedList.PagedList<Zeus.Models.Product>
Pagination is as follows when executing:
Does anyone know what the problem might be?