/// <summary> /// Deletes an existing game /// </summary> public static void DeleteExistingGame(Game game) { IPingPongRepository<Game> _repo = new PingPongRepository<Game>(); _repo.Delete(game.GameId); }
/// <summary> /// Deletes existing game by identification number /// </summary> /// <param name="id"></param> public static void DeleteExistingGameById(int id) { IPingPongRepository<Game> _repo = new PingPongRepository<Game>(); _repo.Delete(id); }
/// <summary> /// Deletes an existing Player /// </summary> public static void DeleteExistingPlayer(Player player) { IPingPongRepository<Player> _repo = new PingPongRepository<Player>(); _repo.Delete(player.PlayerId); }