C# Class Courses.ViewModels.DateRangeAttribute

Inheritance: System.ComponentModel.DataAnnotations.ValidationAttribute
Show file Open project: denismaster/dotnet01

Public Methods

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

Private Methods

Method Description
ParseDate ( string dateValue ) : System.DateTime

Method Details

DateRangeAttribute() public method

public DateRangeAttribute ( string minDate, string maxDate ) : System
minDate string
maxDate string
return System

FormatErrorMessage() public method

public FormatErrorMessage ( string name ) : string
name string
return string

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool