public IActionResult AddAthlete(Athlete athlete) { if (ModelState.IsValid) { _context.AddAthlete(athlete); _context.SaveAthlete(); return(Ok(athlete.AthleteId)); } else { return(BadRequest()); } }