title: DataAnotation to validate a model, how do I validate it so that the date is not in the future?
body: <p>I have the Review Model, I am trying to validate the model, so that
  when the user selects a date, it can't be the date in the future.</p>
  
  <p>Review.cs</p>
  
  <pre><code>public class Review : BaseEntity{
  
      [Key]
      public int Id {get; set;}
  
      [Required(ErrorMessage="You need a restaurant name!")]
      public string RestaurantName {get; set;}
  
      [What do I put in here??]
      public DateTime Date {get; set;}
  
  
  }
  </code></pre>
  
  <p>I am a newbie, and the <a href="https://docs.microsoft.com/en-us/aspnet/core/mvc/models/validation" rel="noreferrer">documentation</a> is kind of hard to understand.</p>
  
  <p>Thank you so much for your help in advance.</p>