public void SaveNewTeam(ScoreSquidContext context, string teamName, Division division) { Team team = new Team { Name = teamName, Division = division }; context.Teams.Add(team); context.Save(); }
public void SaveDivison(ScoreSquidContext context, Division division) { context.Divisions.Add(division); context.Save(); }
public void SaveFixture(ScoreSquidContext context, Fixture fixture) { context.Fixtures.Add(fixture); context.Save(); }
public Player RegisterPlayer(ScoreSquidContext context, Player player) { context.Players.Add(player); context.Save(); return player; }