C# Class Courses.ViewModels.DateRangeAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Afficher le fichier Open project: denismaster/dotnet01

Méthodes publiques

Méthode Description
DateRangeAttribute ( string minDate, string maxDate ) : System
FormatErrorMessage ( string name ) : string
IsValid ( object value ) : bool

Private Methods

Méthode Description
ParseDate ( string dateValue ) : System.DateTime

Method Details

DateRangeAttribute() public méthode

public DateRangeAttribute ( string minDate, string maxDate ) : System
minDate string
maxDate string
Résultat System

FormatErrorMessage() public méthode

public FormatErrorMessage ( string name ) : string
name string
Résultat string

IsValid() public méthode

public IsValid ( object value ) : bool
value object
Résultat bool