Beispiel #1
0
 internal PayInterface GetPayInterface(string value) {
     if(PayInterfaces.ContainsValue(value)) {
         return PayInterfaces.First(p => p.Value == value).Key;
     } else {
         return PayInterface.Virtual;
     }
 }
Beispiel #2
0
 internal string GetPayInterfaceValue(PayInterface payInterface) {
     if(PayInterfaces.ContainsKey(payInterface)) {
         return PayInterfaces[payInterface];
     } else {
         throw new NotSupportedException();
     }
 }