namespace TestDatePickerValidation.Models
{
    using System;
    using System.ComponentModel.DataAnnotations;

    public class OrderDto
    {
        [Range(1, 10)]
        public int OrderID { get; set; }

        public string ContactName { get; set; }

        public string ShipAddress { get; set; }

        [Required]
        [WorkDay(ErrorMessage = "Field {0} is not a workday")]
        public DateTime? OrderDate { get; set; }
    }
}