Skip to content

Commit

Permalink
修复 BUG,TotalPages 改为 TotalCount
Browse files Browse the repository at this point in the history
  • Loading branch information
Surbowl authored Mar 30, 2020
1 parent 4b4fac2 commit 13c7923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Routine/Routine.APi/Helpers/PagedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class PagedList<T> : List<T>

public PagedList(List<T> items,int count,int pageNumber,int pageSize)
{
TotalPages = count;
TotalCount = count;
PageSize = pageSize;
CurrentPage = pageNumber;
TotalPages = (int)Math.Ceiling(count / (double)pageSize);
Expand Down

0 comments on commit 13c7923

Please sign in to comment.