using System.ComponentModel.DataAnnotations; namespace ContactManager.Models { public class Contact { public int Id { get; set; } [Required] [StringLength(50)] public string FirstName { get; set; } [Required] [StringLength(50)] public string LastName { get; set; } } }