From 7071910dc4e3b053bcfcfc2478270f8e039c01f9 Mon Sep 17 00:00:00 2001 From: MathieuCarteron Date: Mon, 8 Jun 2026 16:02:06 +0200 Subject: [PATCH] Modifs de nom --- .../Endpoints/Communication/DeleteCommunicationEndpoint.cs | 3 ++- PyroFetes/Models/Communication.cs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs b/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs index 99f66b9..ce1055e 100644 --- a/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs +++ b/PyroFetes/Endpoints/Communication/DeleteCommunicationEndpoint.cs @@ -1,11 +1,12 @@ using FastEndpoints; using Microsoft.EntityFrameworkCore; using PyroFetes.DTO.Availability.Request; +using PyroFetes.DTO.Communication.Request; using PyroFetes.DTO.Communication.Response; namespace PyroFetes.Endpoints.Communication; -public class DeleteCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint +public class DeleteCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint { public override void Configure() { diff --git a/PyroFetes/Models/Communication.cs b/PyroFetes/Models/Communication.cs index a3dd0d2..61b002b 100644 --- a/PyroFetes/Models/Communication.cs +++ b/PyroFetes/Models/Communication.cs @@ -5,9 +5,9 @@ namespace PyroFetes.Models; public class Communication { [Key] public int Id { get; set; } - [Required, MaxLength(100)] public string? Calling { get; set; } - [Required, MaxLength(100)] public string? Email { get; set; } - [Required, MaxLength(300)] public string? Meeting { get; set; } + [MaxLength(100)] public string? Calling { get; set; } + [MaxLength(100)] public string? Email { get; set; } + [MaxLength(300)] public string? Meeting { get; set; } [Required] public int ContactId { get; set; } public Contact? Contact { get; set; }