Change type of date parameters (string => DateOnly)

This commit is contained in:
2025-10-03 16:53:18 +01:00
parent da468f2853
commit 52521908b7
10 changed files with 27 additions and 24 deletions

View File

@@ -5,14 +5,16 @@ namespace PyroFetes.Models;
public class Contact
{
[Key] public int Id { get; set; }
[Required] public string LastName { get; set; }
[Required] public string FirstName { get; set; }
[Required] public string Email { get; set; }
[Required] public string PhoneNumber { get; set; }
[Required] public string Address { get; set; }
[Required] public string Role { get; set; }
[Required, MaxLength(100)] public string? LastName { get; set; }
[Required, MaxLength(100)] public string? FirstName { get; set; }
[Required] public string? Email { get; set; }
[Required] public string? PhoneNumber { get; set; }
[Required] public string? Address { get; set; }
[Required] public string? ZipCode { get; set; }
[Required] public string? City { get; set; }
[Required] public string? Role { get; set; }
//RELATIONS DE CON LA
public int CommunicationID { get; set; }
public int CommunicationId { get; set; }
public Communication? Communication { get; set; }
}