public async Task <IActionResult> GetCoach(int id) { var coach = await _coachRepository.GetByIdAsync(id); if (coach == null) { return(NotFound()); } return(Ok(coach)); }