public TeamsDocument Create(TeamsDocument team) { _teams.InsertOne(team); return(team); }
public ActionResult <TeamsDocument> CreateTeam(TeamsDocument team) { _teamsService.Create(team); return(CreatedAtRoute("GetTeam", new { id = team.Id.ToString() }, team)); }