예제 #1
0
        public ActionResult <Athlete> VerifyUser(AthleteLoginDTO user)
        {
            var athlete = athleteService.VerifyAthlete(user);

            if (athlete == null)
            {
                return(NotFound());
            }
            return(Ok(athlete));
        }
예제 #2
0
        public ActionResult <Athlete> VerifyUser(AthleteLoginDTO user)
        {
            var result = athleteService.VerifyAthlete(user);

            if (result != null)
            {
                return(Ok(result));
            }
            else
            {
                return(NotFound());
            }
        }