using System.ComponentModel.DataAnnotations; namespace Demo001.Models; public class TodoItem { public int Id { get; set; } [Required] public string Title { get; set; } = string.Empty; public string? Description { get; set; } public bool IsComplete { get; set; } }