a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
11 lines
412 B
C#
11 lines
412 B
C#
namespace System.Web.Mvc {
|
|
public class ModelClientValidationRangeRule : ModelClientValidationRule {
|
|
public ModelClientValidationRangeRule(string errorMessage, object minValue, object maxValue) {
|
|
ErrorMessage = errorMessage;
|
|
ValidationType = "range";
|
|
ValidationParameters["min"] = minValue;
|
|
ValidationParameters["max"] = maxValue;
|
|
}
|
|
}
|
|
}
|