Make Comments_DTO fields nullable for JSON endpoint compatibility

- Text, UserId, CreatedDate are set server-side, not required from client
This commit is contained in:
Adam Moussa 2026-04-16 18:24:04 -04:00
parent 18ca737307
commit be70c84add

View file

@ -2,11 +2,11 @@
{
public class Comments_DTO
{
public string Text { get; set; }
public string? Text { get; set; }
public IFormFile? Document { get; set; }
public int WorkorderId { get; set; }
public DateTime CreatedDate { get; set; }
public string UserId { get; set; }
public DateTime? CreatedDate { get; set; }
public string? UserId { get; set; }
public string? CommentType { get; set; }
}
}