ArmedCards.BusinessLogic.Repositories.Game.Leave.Execute C# (CSharp) Метод

Execute() публичный Метод

Removes a player from the game
public Execute ( Int32 gameID, Entities user, Entities playerType ) : void
gameID System.Int32 The ID of the game to leave
user Entities The user leaving the game
playerType Entities Type of player leaving
Результат void
        public void Execute(Int32 gameID, Entities.User user, Entities.Enums.GamePlayerType playerType)
        {
            Entities.GamePlayer player = new Entities.GamePlayer();
            player.GameID = gameID;
            player.User = user;
            player.PlayerType = playerType;

            _deleteGamePlayer.Execute(player);
        }