using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace TrackerLibrary.Models { public class PersonModel { /// /// The unique identifier for the prize /// public int Id { get; set; } [Display(Name="Given Name")] [StringLength(100,MinimumLength =2)] [Required] public string FirstName { get; set; } [Display(Name = "Last Name")] [StringLength(100, MinimumLength = 2)] [Required] public string LastName { get; set; } [Display(Name = "Email Address")] [StringLength(200, MinimumLength = 6)] [Required] public string EmailAddress { get; set; } [Display(Name = "Cellphone Number")] [StringLength(20, MinimumLength = 10)] [Required] public string CellPhoneNumber { get; set; } public string FullName { get { return $"{FirstName} {LastName}"; } } } }