예제 #1
0
        private static decimal CalculateFee(decimal amount, WithDrawType type)
        {
            switch (type)
            {
            case WithDrawType.Transfer:
                return(amount * .10m);

            case WithDrawType.Withdrawal:
                return(amount * .05m);

            default:
                return(0);
            }
        }
예제 #2
0
 private static decimal CalculateFee(decimal amount, WithDrawType type)
 {
     switch (type)
     {
         case WithDrawType.Transfer:
             return amount * .10m;
         case WithDrawType.Withdrawal:
             return amount * .05m;
         default:
             return 0;
     }
 }