Пример #1
0
 public void BuyForBonuses(CreditCard.PremiumCard card_type, int value)
 {
     if (card_type.bonusBalance < value)
     {
         throw new Exception("Недостаточно бонусов");
     }
     else
     {
         card_type.bonusBalance -= value;
     }
 }
Пример #2
0
 public void CashOut(CreditCard.PremiumCard card_type, double value) => card_type.CashIn(value);