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 })); }
public static bool AddNewTeam(Team t) { return(TeamRepository.AddNewTeam(t)); }