Last active
October 23, 2018 19:07
-
-
Save OndeVai/e583a6721363fbde4fbc850506a85cb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var skip = (pageNumber - 1) * pageSize; | |
return | |
_context.Authors | |
.OrderBy(a => a.FirstName) | |
.ThenBy(a => a.LastName) | |
.Skip(skip) | |
.Take(pageSize) | |
.ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment