public void DeleteGameById(int id) { Game toRemove = new Game { GameId = id }; _context.Game.Remove(toRemove); _context.SaveChanges(); }
public void InsertPlayer(Player player) { _context.Player.Add(player); _context.SaveChanges(); }