예제 #1
0
        public async Task <IActionResult> GetAthleteByIdAsync(int athleteId, CancellationToken ct)
        {
            var athlete = await _athleteService.GetAthleteAsync(athleteId, ct);

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

            return(Ok(athlete));
        }