using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace MVCMovie.Models { public class Movie { public int Id { get; set; } [Required] [StringLength(100)] public string Title { get; set; } [Required] [ClassicMovie(1960)] public DateTime ReleaseDate { get; set; } [Required] [StringLength(1000)] public string Description { get; set; } [Required()] [Range(0, 999.99)] public float Price { get; set; } [Required] public Genre Genre { get; set; } public bool Preorder { get; set; } [Required] public Audience Audience { get; set; } public List Reviews { get; set; } } }