Last active
April 15, 2018 13:50
-
-
Save NMZivkovic/2669f6636a0e1c057ed5aa289d54d0a3 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 twentyMostViewedPosts = context.Articles | |
.Where(a => a.IsPublished) | |
.OrderBy(a => a.Views).Take(20); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment