Viewing and creating new people implemented

This commit is contained in:
2020-05-04 22:40:48 +02:00
parent 9957004b80
commit fc49f33575
8 changed files with 187 additions and 7 deletions

View File

@ -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
{