Refactor CreateOutResCommand properties

Removed unused System.Text.Json dependency and the `EmptyJson` field. Updated `ActionId` to be required during initialization. Changed `Header` and `Body` properties to nullable strings without default values.
This commit is contained in:
tekh 2025-12-01 13:01:58 +01:00
parent e62dfbcc7a
commit a7cb237fb6

View File

@ -6,16 +6,11 @@ namespace ReC.Application.OutResults.Commands;
public class CreateOutResCommand : IRequest
{
public static readonly string EmptyJson = JsonSerializer.Serialize(new object(), options: new()
{
WriteIndented = false
});
public required long ActionId { get; set; }
public long ActionId { get; set; }
public string? Header { get; set; }
public string Header { get; set; } = EmptyJson;
public string Body { get; set; } = EmptyJson;
public string? Body { get; set; }
public string? AddedWho { get; set; }
}