public async Task <IActionResult> OnGetAsync( Guid?id) { if (id == null) { return(NotFound()); } this.Contest = await _contestFetcher.ExecuteAsync( new ContestFetch { Id = id.Value }); return(Page()); }
public async Task <IActionResult> OnGetAsync( Guid?id) { if (id == null) { return(NotFound()); } this.Contest = await _contestFetcher.ExecuteAsync( new ContestFetch { Id = id.Value }); this.Contest.Learners = this.Contest.Learners .OrderByDescending(x => x.CurrentValue) .ThenBy(x => x.DisplayName) .ToList(); return(Page()); }