using System.ComponentModel.DataAnnotations; namespace BlazorDanRothDemo.Models; // Demo is from: // Modern Full-Stack Web Development with ASP.NET Core & Blazor | OD533 // www.youtube.com/watch?v=NbfhbDKiFpM public class Movie { public int Id { get; set; } [Required] public string? Title { get; set; } public DateOnly? ReleaseDate { get; set; } public string? Genre { get; set; } [Range(0, 100)] public decimal Price { get; set; } }