Fix for wrong items per page calculation for the view
This commit is contained in:
parent
a1f2cc9975
commit
a8d2fafb79
@ -33,7 +33,7 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
|
|||||||
PaginationInfo = new PaginationInfo()
|
PaginationInfo = new PaginationInfo()
|
||||||
{
|
{
|
||||||
ActualPage = page ?? 0,
|
ActualPage = page ?? 0,
|
||||||
ItemsPerPage = (catalog.Count < itemsPage) ? catalog.Count : itemsPage,
|
ItemsPerPage = catalog.Data.Count,
|
||||||
TotalItems = catalog.Count,
|
TotalItems = catalog.Count,
|
||||||
TotalPages = int.Parse(Math.Ceiling(((decimal)catalog.Count / itemsPage)).ToString())
|
TotalPages = int.Parse(Math.Ceiling(((decimal)catalog.Count / itemsPage)).ToString())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user