max value data annotation csharp

Code Example - max value data annotation csharp

                
                        [Range(0.0, Double.MaxValue, ErrorMessage = "The field {0} must be greater than {1}.")]