mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-04 13:42:14 +00:00
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:
parent
18ca737307
commit
be70c84add
1 changed files with 3 additions and 3 deletions
|
|
@ -2,11 +2,11 @@
|
||||||
{
|
{
|
||||||
public class Comments_DTO
|
public class Comments_DTO
|
||||||
{
|
{
|
||||||
public string Text { get; set; }
|
public string? Text { get; set; }
|
||||||
public IFormFile? Document { get; set; }
|
public IFormFile? Document { get; set; }
|
||||||
public int WorkorderId { get; set; }
|
public int WorkorderId { get; set; }
|
||||||
public DateTime CreatedDate { get; set; }
|
public DateTime? CreatedDate { get; set; }
|
||||||
public string UserId { get; set; }
|
public string? UserId { get; set; }
|
||||||
public string? CommentType { get; set; }
|
public string? CommentType { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue