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); } }
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; } }