public IHttpActionResult CreateTeam([FromBody]TeamDTO _team)
 {
     LeaguesApiController leaguesApiController = new LeaguesApiController();
     int leagueId = leaguesApiController.getLeagueIdByTeamId(_team.Id);
     team t = new team { Name = _team.Name, Description = _team.Description, League = leagueId, Enabled = true, Logo = _team.Logo };
     using (var context = new escorcenterdbEntities())
     {
         context.teams.Add(t);
         context.SaveChanges();
     }
     return Ok(t);
 }
 public IHttpActionResult insertarequipos()
 {
     team t = null;
     using (var context = new escorcenterdbEntities())
     {
         t = new team { Name = "", League = 2, Enabled = true, Description = "Omar es Joto", Logo = "http://pintarimagenes.org/wp-content/uploads/2014/04/toro5.jpg" };
         context.teams.Add(t);
     }
     return Ok(t);
 }