public void Post(BitPoker.Models.Messages.ActionMessage message) { if (base.Verify(message) == true) { Models.Hand hand = HandRepo.All().Single(h => h.Id.ToString() == message.HandId.ToString()); if (hand != null) { } } }
public void Post(BitPoker.Models.Messages.ActionMessage message) { if (base.Verify(message) == true) { Models.Hand hand = HandRepo.All().Single(h => h.Id.ToString() == message.HandId.ToString()); if (hand != null) { BitPoker.Models.Players.IPlayerLogic player1 = new BitPoker.Models.TexasHoldemPlayer(); BitPoker.Models.Players.IPlayerLogic player2 = new BitPoker.Models.TexasHoldemPlayer(); BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame holdem = new BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame(player1, player2); if (hand != null) { //BitPoker.Models.Players.IPlayer player1 = new //BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame holdem = new BitPoker.Logic.GameMechanics.TwoPlayersTexasHoldemGame(); } } } }
public IEnumerable <BitPoker.Models.Hand> Get(string id) { return(HandRepo.All().Where(h => h.TableId.ToString() == id)); }
public IEnumerable <BitPoker.Models.Hand> Get() { return(HandRepo.All().Take(MaxRows)); }