Пример #1
0
        public async Task <ActionResult <Athlete> > Get(int id)
        {
            var athlete = await repository.FindAthleteAsync(id);

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

            return(NotFound());
        }