Ejemplo n.º 1
0
 private async Task CreatePosition(Game game, Models.Player player, PlayerPositionTypes position, Db db)
 {
     db.PlayerPositions.Add(new PlayerPosition
     {
         GameId   = game.Id,
         PlayerId = player.Id,
         Position = position
     });
     await db.SaveChangesAsync();
 }
Ejemplo n.º 2
0
 private async Task CreatePosition(Game game, Models.Player player, PlayerPositionTypes position, Db db)
 {
     db.PlayerPositions.Add(new PlayerPosition
     {
         GameId = game.Id,
         PlayerId = player.Id,
         Position = position
     });
     await db.SaveChangesAsync();
 }