Skip to content

Commit

Permalink
fix: fix the total pages not assignment issues.
Browse files Browse the repository at this point in the history
close arch#34
  • Loading branch information
rigofunc committed Sep 4, 2017
1 parent baecd64 commit 98a55de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public static class IQueryablePageListExtensions
PageSize = pageSize,
IndexFrom = indexFrom,
TotalCount = count,
Items = items
Items = items,
TotalPages = (int)Math.Ceiling(count / (double)pageSize)
};

return pagedList;
Expand Down

0 comments on commit 98a55de

Please sign in to comment.