Exemplo n.º 1
0
        public async Task <IActionResult> TimeTrials(int id)
        {
            var jsonFilename = string.Format(DataFiles.TimeTrialFormat, id);

            await _scraperService.RebuildTimeTrialLeaderboardIfOld(jsonFilename, id, 6.0, true);

            var timeTrials = await _scraperService.GetTimeTrialLeaderboard(id);

            var image = new FluentTableCreator()
                        .WithTimeTrials(timeTrials)
                        .ForTimeTrials()
                        .Create();

            return(new ImageResult(image));
        }