From be70c84addde95bc22fd98ae54f1a0b0ce06e009 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Thu, 16 Apr 2026 18:24:04 -0400 Subject: [PATCH] Make Comments_DTO fields nullable for JSON endpoint compatibility - Text, UserId, CreatedDate are set server-side, not required from client --- Api.SeaHavenIndustries/DTOs/Comments_DTO.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Api.SeaHavenIndustries/DTOs/Comments_DTO.cs b/Api.SeaHavenIndustries/DTOs/Comments_DTO.cs index 3cd1f00..81a2175 100644 --- a/Api.SeaHavenIndustries/DTOs/Comments_DTO.cs +++ b/Api.SeaHavenIndustries/DTOs/Comments_DTO.cs @@ -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; } } }