Example #1
0
        public static void CheckAmountValid(decimal amount)
        {
            var minAmount = 0.01m;
            var maxAmount = 1000000;

            if (!Validation.CheckDecimalWithinSizeRange(minAmount, maxAmount, amount))
            {
                throw new System.Exception("The amount entered was out of range. Value must lie between " + minAmount + " and " + maxAmount + ".");
            }
        }