public IActionResult AddScore(string name, int score) { AsteroidsDb.AddScore(name, score); return(Json(new { result = "ok" })); }
public IActionResult GetLeaderboard() { return(Json(AsteroidsDb.GetLeaderboard().OrderByDescending(s => s.score))); }
public IActionResult AddScore(string name, int score) { AsteroidsDb.AddScore(name, score); return(Json(new { result = "ok" })); }
public IActionResult GetLeaderboard() { return(Json(AsteroidsDb.GetLeaderboard().OrderByDescending(s => s.score))); }