Ajout de constructeur vide pour les DTO qui n'en avaient pas

testConsoleEF^2
Johnny RATTON 1 year ago
parent d8e041736f
commit 231f9bd878

@ -5,6 +5,7 @@ public class BlackListDTO
public string Email { get; set; } public string Email { get; set; }
public DateOnly ExpirationDate { get; set; } public DateOnly ExpirationDate { get; set; }
public BlackListDTO() {}
public BlackListDTO(string email, DateOnly expirationDate) public BlackListDTO(string email, DateOnly expirationDate)
{ {
Email = email; Email = email;

@ -10,6 +10,7 @@ public class InquiryDTO
public bool IsUser { get; set; } public bool IsUser { get; set; }
public InquiryDTO(){}
public InquiryDTO(int id, string title, string description, bool isUser) public InquiryDTO(int id, string title, string description, bool isUser)
{ {
Id = id; Id = id;

@ -29,9 +29,9 @@ public class ParagraphDTO : ContentLessonDTO
Info = info; Info = info;
Query = query; Query = query;
Comment = comment; Comment = comment;
} }
public ParagraphDTO() : base() public ParagraphDTO() : base()
{ {
} }
} }
Loading…
Cancel
Save