Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with pagination #126

Merged

Conversation

xnodeoncode
Copy link
Contributor

This PR fixes issues with the 'Older' button that navigates to previous posts. The call to Model.Count() is invalid as the model only contains two blog posts at a time. This fix adds a ViewData variable representing the total number of posts so that the correct number of pages can be calculated.

@madskristensen madskristensen merged commit e99e165 into madskristensen:master Dec 27, 2019
@madskristensen
Copy link
Owner

Thanks

@xnodeoncode xnodeoncode deleted the fix-issue-with-pagination branch December 31, 2019 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants