예제 #1
0
        public IActionResult Get(int Id)
        {
            var athlete = _athleteService.GetAthleteById(Id);

            if (athlete != null)
            {
                return(Ok(athlete));
            }
            else
            {
                return(BadRequest());
            }
        }