Browse Source

Fix for wrong items per page calculation for the view

pull/73/head
dsanz 8 years ago
parent
commit
a8d2fafb79
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Web/WebMVC/Controllers/CatalogController.cs

+ 1
- 1
src/Web/WebMVC/Controllers/CatalogController.cs View File

@ -33,7 +33,7 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
PaginationInfo = new PaginationInfo()
{
ActualPage = page ?? 0,
ItemsPerPage = (catalog.Count < itemsPage) ? catalog.Count : itemsPage,
ItemsPerPage = catalog.Data.Count,
TotalItems = catalog.Count,
TotalPages = int.Parse(Math.Ceiling(((decimal)catalog.Count / itemsPage)).ToString())
}


Loading…
Cancel
Save