37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
|
|
namespace TrackerLibrary.Models
|
|
{
|
|
public class PersonModel
|
|
{
|
|
/// <summary>
|
|
/// The unique identifier for the prize
|
|
/// </summary>
|
|
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}"; }
|
|
}
|
|
|
|
}
|
|
}
|