private string TranslateCardType(CardType cardType) { switch (cardType) { case CardType.MasterCard: return ("MC"); case CardType.Visa: return ("VISA"); } throw (new NotImplementedException("Only Visa and Mastercard currently supported!")); }