예제 #1
0
        public void DeleteGameById(int id)
        {
            Game toRemove = new Game {
                GameId = id
            };

            _context.Game.Remove(toRemove);
            _context.SaveChanges();
        }
예제 #2
0
 public void InsertPlayer(Player player)
 {
     _context.Player.Add(player);
     _context.SaveChanges();
 }