Modifs de nom
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
using FastEndpoints;
|
using FastEndpoints;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using PyroFetes.DTO.Availability.Request;
|
using PyroFetes.DTO.Availability.Request;
|
||||||
|
using PyroFetes.DTO.Communication.Request;
|
||||||
using PyroFetes.DTO.Communication.Response;
|
using PyroFetes.DTO.Communication.Response;
|
||||||
|
|
||||||
namespace PyroFetes.Endpoints.Communication;
|
namespace PyroFetes.Endpoints.Communication;
|
||||||
|
|
||||||
public class DeleteCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint <GetCommunicationDto, GetAllCommunicationsEndpoint>
|
public class DeleteCommunicationEndpoint(PyroFetesDbContext pyroFetesDbContext) : Endpoint <GetCommunicationRequest, GetCommunicationDto>
|
||||||
{
|
{
|
||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ namespace PyroFetes.Models;
|
|||||||
public class Communication
|
public class Communication
|
||||||
{
|
{
|
||||||
[Key] public int Id { get; set; }
|
[Key] public int Id { get; set; }
|
||||||
[Required, MaxLength(100)] public string? Calling { get; set; }
|
[MaxLength(100)] public string? Calling { get; set; }
|
||||||
[Required, MaxLength(100)] public string? Email { get; set; }
|
[MaxLength(100)] public string? Email { get; set; }
|
||||||
[Required, MaxLength(300)] public string? Meeting { get; set; }
|
[MaxLength(300)] public string? Meeting { get; set; }
|
||||||
|
|
||||||
[Required] public int ContactId { get; set; }
|
[Required] public int ContactId { get; set; }
|
||||||
public Contact? Contact { get; set; }
|
public Contact? Contact { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user