Ejemplo n.º 1
0
        public ActionResult AddTeam(Team team, int leagueId)
        {
            League league = LeagueRepository.GetLeagueById(leagueId);

            team.League = league;
            //function for add new team in neo4j
            team = TeamRepository.AddNewTeam(team, leagueId);
            return(RedirectToAction("TeamDetails", new { id = team.Id }));
        }
Ejemplo n.º 2
0
 public static bool AddNewTeam(Team t)
 {
     return(TeamRepository.AddNewTeam(t));
 }