Skip to content

Instantly share code, notes, and snippets.

@orthros
Created June 28, 2017 01:42
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 orthros/aab3f863116265c56890c6fbe6472b72 to your computer and use it in GitHub Desktop.
Save orthros/aab3f863116265c56890c6fbe6472b72 to your computer and use it in GitHub Desktop.
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