diff --git a/Cicm.Database/Models/Person.cs b/Cicm.Database/Models/Person.cs index 315310d9..66222632 100644 --- a/Cicm.Database/Models/Person.cs +++ b/Cicm.Database/Models/Person.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; @@ -10,15 +11,21 @@ namespace Cicm.Database.Models [Required] public string Name { get; set; } [Required] - public string Surname { get; set; } - public virtual Iso31661Numeric CountryOfBirth { get; set; } - public DateTime BirthDate { get; set; } - public DateTime? DeathDate { get; set; } - public string Webpage { get; set; } - public string Twitter { get; set; } - public string Facebook { get; set; } - public Guid Photo { get; set; } - public int? DocumentPersonId { get; set; } + public string Surname { get; set; } + [DisplayName("Country of birth")] + public virtual Iso31661Numeric CountryOfBirth { get; set; } + [DisplayName("Birth date")] + [DataType(DataType.Date)] + public DateTime BirthDate { get; set; } + [DisplayName("Date of death")] + [DataType(DataType.Date)] + public DateTime? DeathDate { get; set; } + [Url] + public string Webpage { get; set; } + public string Twitter { get; set; } + public string Facebook { get; set; } + public Guid Photo { get; set; } + public int? DocumentPersonId { get; set; } [NotMapped] public string FullName => $"{Name} {Surname}"; diff --git a/cicm_web/cicm_web.csproj b/cicm_web/cicm_web.csproj index 5f1dfecc..a00e8517 100644 --- a/cicm_web/cicm_web.csproj +++ b/cicm_web/cicm_web.csproj @@ -2,7 +2,7 @@ netcoreapp2.2 - 3.0.99.860 + 3.0.99.863 Canary Islands Computer Museum Copyright © 2003-2018 Natalia Portillo Canary Islands Computer Museum Website