public ActionResult <AuthenticatedAthlete> Create(AuthenticatedAthlete athlete) { _userService.Create(athlete); return(CreatedAtRoute("GetAthlete", new { id = athlete.Id }, athlete)); }
public AuthenticatedAthlete Create(AuthenticatedAthlete athlete) { _athlete.InsertOne(athlete); return(athlete); }