Viewing and creating new people implemented
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace TrackerLibrary.Models
|
||||
@ -10,9 +11,21 @@ namespace TrackerLibrary.Models
|
||||
/// 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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user