public void addPlayer(player p) { using (var db = new bowlingEntities()) { this.game.players.Add(p); try { db.SaveChanges(); } catch (Exception e) { throw new Exception("Error", e); } } }
public void addPlayer(game g, player p) { using (var db = new bowlingEntities()) { try { game game = db.games.Find(g.Id); game.players.Add(p); db.SaveChanges(); } catch (Exception e) { throw new Exception("Error", e); } } }
public void removePlayer(staff s, game g, player p) { s.removePlayer(g, p); }
public void addPlayer(staff s, game g, player p) { s.addPlayer(g, p); }
public game createGame(player p) { return p.createGame(); }
public void addPlayer(player currentPlayer, player p) { currentPlayer.addPlayer(p); }