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
|
||||
{
|
||||
|
||||
@ -47,6 +47,7 @@
|
||||
<HintPath>..\packages\Newtonsoft.Json.10.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=5.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
|
||||
Reference in New Issue
Block a user