date de départ non obligatoire dans develop #12

Merged
Clement.Ferrere merged 2 commits from refonte_agence_bu into develop 2 years ago
  1. 2
      Collaborateur_Epa_Back/espacecollab.backend.appservices.dtos/CollaborateurApiDto.cs
  2. 4
      Collaborateur_Epa_Back/espacecollab.backend.infrastructure.sql.dtos/CollaborateurSqlDto.cs

@ -4,7 +4,7 @@ using espacecollab.backend.appservices.dtos.Values;
namespace espacecollab.backend.appservices.dtos; namespace espacecollab.backend.appservices.dtos;
public record CollaborateurApiDto(uint Id, string Name, string FirstName, DateTime BirthDate, EnumGenreApi Gender, EnumStatutApi Status, int ChildrenNumber, string Address, public record CollaborateurApiDto(uint Id, string Name, string FirstName, DateTime BirthDate, EnumGenreApi Gender, EnumStatutApi Status, int ChildrenNumber, string Address,
string Telephone, string PersonalMail, string ApsideMail, DateTime ResignationDate, int ReferrerId, int BusinessUnitId) : IGenericIdApiDto string Telephone, string PersonalMail, string ApsideMail, DateTime? ResignationDate, int ReferrerId, int BusinessUnitId) : IGenericIdApiDto
{ {
public uint Id { get; set; } = Id; public uint Id { get; set; } = Id;
} }

@ -21,7 +21,7 @@ public class CollaborateurSqlDto : IGenericIdSqlDto
public string Telephone { get; set; } public string Telephone { get; set; }
public string PersonalMail { get; set; } public string PersonalMail { get; set; }
public string ApsideMail { get; set; } public string ApsideMail { get; set; }
public DateTime ResignationDate { get; set; } public DateTime? ResignationDate { get; set; }
public int ReferrerId { get; set; } public int ReferrerId { get; set; }
public int BusinessUnitId { get; set; } public int BusinessUnitId { get; set; }
@ -36,7 +36,7 @@ public class CollaborateurSqlDto : IGenericIdSqlDto
ApsideMail = string.Empty; ApsideMail = string.Empty;
} }
public CollaborateurSqlDto(int id, string name, string firstName, DateTime birthDate, EnumGenreSql gender, EnumStatutSql status, int childrenNumber, string address, string telephone, string personalMail, string apsideMail, DateTime resignationDate, int referrerId, int businessUnitId) public CollaborateurSqlDto(int id, string name, string firstName, DateTime birthDate, EnumGenreSql gender, EnumStatutSql status, int childrenNumber, string address, string telephone, string personalMail, string apsideMail, DateTime? resignationDate, int referrerId, int businessUnitId)
{ {
Id = id; Id = id;
Name = name; Name = name;

Loading…
Cancel
Save