Skip to content

Instantly share code, notes, and snippets.

@jasondown
Created August 3, 2021 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasondown/b34064148997c6a1c128f09198ca8cb7 to your computer and use it in GitHub Desktop.
Save jasondown/b34064148997c6a1c128f09198ca8cb7 to your computer and use it in GitHub Desktop.
private IEnumerable<ImageViewModel> GetImages()
{
if (_images != null && _images.Count > 0)
{
return _images.Skip(CurrentPage * PageSize).Take(PageSize);
}
return Enumerable.Empty<ImageViewModel>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment