We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1f2cc9 commit a8d2fafCopy full SHA for a8d2faf
1 file changed
src/Web/WebMVC/Controllers/CatalogController.cs
@@ -33,7 +33,7 @@ public async Task<IActionResult> Index(int? BrandFilterApplied, int? TypesFilter
33
PaginationInfo = new PaginationInfo()
34
{
35
ActualPage = page ?? 0,
36
- ItemsPerPage = (catalog.Count < itemsPage) ? catalog.Count : itemsPage,
+ ItemsPerPage = catalog.Data.Count,
37
TotalItems = catalog.Count,
38
TotalPages = int.Parse(Math.Ceiling(((decimal)catalog.Count / itemsPage)).ToString())
39
}
0 commit comments