Make Status required in InsertResultCommand

Changed the Status property in InsertResultCommand from nullable to required, ensuring that a Status value must always be provided when creating an instance. This improves data integrity and prevents accidental omission of the Status field.
This commit is contained in:
2026-03-30 11:33:08 +02:00
parent 2b5e63cb45
commit 68f4486fa1

View File

@@ -7,7 +7,7 @@ namespace ReC.Application.Results.Commands;
public record InsertResultCommand : IInsertProcedure public record InsertResultCommand : IInsertProcedure
{ {
public long? ActionId { get; set; } public long? ActionId { get; set; }
public Status? Status { get; set; } public required Status Status { get; set; }
public string? Header { get; set; } public string? Header { get; set; }
public string? Body { get; set; } public string? Body { get; set; }
public string? Info { get; set; } public string? Info { get; set; }