コード例 #1
0
        public async Task <ActionResult <List <string> > > GetInterimTimes(int id)
        {
            var run = await _runService.GetRun(id);

            if (run == null)
            {
                return(NotFound());
            }

            var times = await _runService.GetInterimTimes(run.Race, run.RunNumber, run.Skier);

            return(Ok(times.Select(time => time.ToString(@"mm\:ss\:ff"))));
        }