private void TryFuturePick(int draftId)
        {
            IDraftRepository dr = new DraftRepository();
            IFuturePickRepository fpr = new FuturePickRepository();

            var draft = dr.GetById(draftId);

            var futurePick = fpr.GetNextFuturePick(draft, draft.CurrentTurn);
            if (futurePick != null)
            {
                var futurePickCard = futurePick.Card;
                fpr.RemoveFuturePick(futurePick);

                PickCard(draftId, draft.CurrentTurn.Id, futurePickCard.Id);
            }
        }
Exemplo n.º 2
0
 public void RemoveMyFuturePick(int futurePickId)
 {
     IFuturePickRepository futurePickRepository = new FuturePickRepository();
     futurePickRepository.RemoveFuturePick(new FuturePick { Id = futurePickId });
 }