ArmedCards.BusinessLogic.AppServices.Game.ValidatePassphrase.Execute C# (CSharp) Method

Execute() public method

Validate the passhrase policy
public Execute ( Int32 gameID, String passphrase ) : bool
gameID System.Int32 The gameID for the game containing the policy
passphrase String The user supplied passphrase
return bool
        public bool Execute(Int32 gameID, String passphrase)
        {
            Entities.Filters.Game.Select filter = new Entities.Filters.Game.Select();
            filter.GameID = gameID;

            Entities.Game game = _selectGame.Execute(filter);

            return _validatePassphrase.Execute(game, passphrase);
        }