public CoachesDocument Create(CoachesDocument coach) { _coaches.InsertOne(coach); return(coach); }
public ActionResult <CoachesDocument> CreateCoach(CoachesDocument coach) { _coachesService.Create(coach); return(CreatedAtRoute("GetCoach", new { id = coach.Id.ToString() }, coach)); }