ArmedCards.BusinessLogic.DomainServices.GamePlayerCard.CreateHand.Execute C# (CSharp) Method

Execute() private method

private Execute ( Int32 drawCount, Int32 userId, Int32 gameID, List answers ) : List
drawCount System.Int32
userId System.Int32
gameID System.Int32
answers List
return List
        private List<Entities.GamePlayerCard> Execute(Int32 drawCount, Int32 userId, Int32 gameID,
															 List<Entities.Card> answers)
        {
            IEnumerable<Entities.GamePlayerCard> hand =
                answers.Take(drawCount).Select(card => new Entities.GamePlayerCard(card, gameID, userId));

            answers.RemoveRange(0, drawCount);

            return hand.ToList();
        }

Same methods

CreateHand::Execute ( List answers, Int32>.Dictionary numbersToDraw, Entities game ) : void