Created
June 28, 2017 01:42
-
-
Save orthros/aab3f863116265c56890c6fbe6472b72 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
public class DashboardController : Controller | |
{ | |
UserBounty db = new UserBounty(); | |
// GET: Dashboard | |
public ActionResult Index() | |
{ | |
var topUsers = db.Users | |
.OrderByDescending(x => x.BountiesCompleted) | |
.Take(10); | |
return View("Index", topUsers); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment