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