Beispiel #1
0
        public async Task <IActionResult> OnGetAsync(
            Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            this.Contest =
                await _contestFetcher.ExecuteAsync(
                    new ContestFetch
            {
                Id = id.Value
            });

            return(Page());
        }
Beispiel #2
0
        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());
        }