Example #1
0
 public static Validation IsPrice(this Validation validate, string value, string property)
 {
     return(validate
            .IsDecimal(value, property)
            .ContinueIfValid(v1 => v1.GreaterThan(decimal.Parse(value), 0, $"{property} is not greater than 0")));
 }