public ActionResult <Athlete> VerifyUser(AthleteLoginDTO user) { var athlete = athleteService.VerifyAthlete(user); if (athlete == null) { return(NotFound()); } return(Ok(athlete)); }
public ActionResult <Athlete> VerifyUser(AthleteLoginDTO user) { var result = athleteService.VerifyAthlete(user); if (result != null) { return(Ok(result)); } else { return(NotFound()); } }