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