public IActionResult GetRankings([FromQuery] ResultsManager.FilterType type, [FromQuery] ResultsManager.SortType sort, [FromQuery] Gender?gender) { var results = _resultsManager.GetRankings(type, sort, gender); if (results == null) { return(NotFound()); } return(Json(results)); }