protected CardInDeckViewModel CreateDeckCardViewModelFromModel(CardModel cardModel)
        {
            //if (this.Cards == null)
              //  return new CardInDeckViewModel(cardModel);

              //var cardFound = this.Cards.FirstOrDefault(c => c.Name == cardModel.Name);
              //if(cardFound == null)
            return new CardInDeckViewModel(cardModel);

              //cardFound.Quantity++;
              //return null;
        }
 public CardModel AddCard(CardModel card)
 {
     this.Cards.Add(card);
     return card;
 }
 protected internal CardViewModel(CardModel model)
 {
     this.Model = model;
 }
        public CardModel RemoveCard(CardModel card)
        {
            if (this.Cards.Contains(card))
                this.Cards.Remove(card);

            return card;
        }