using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using r18.Infrastructure;

namespace r18.Models
{
    [AppointmentValidator]
    public class Appointment
    {

        [Required]
        [StringLength(10, MinimumLength = 3)] 
        public string ClientName { get; set; }

        [DataType(DataType.Date)]
        [Required(ErrorMessage = "Proszę podać datę")] 
        //[FutureDate(ErrorMessage = "Proszę podać datę w przyszłości")]
        public DateTime Date { get; set; }

        [MustBeTrue(ErrorMessage = "Zaakceptowanie warunków jest obowiązkowe")] 
        public bool TermsAccepted { get; set; }
    }
}