Last active
June 5, 2020 20:53
-
-
Save alimozdemir/5c419e7e7f6d74a11b1a76d1abc8630d to your computer and use it in GitHub Desktop.
Pagination Example
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
[HttpGet] | |
public IEnumerable<Entity> Get(int skip = 0, int take = 10) | |
{ | |
return _db.Entities.Skip(skip).Take(take).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment