From 68f4486fa12325b74705b6f4da5c9ef389737b2e Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 30 Mar 2026 11:33:08 +0200 Subject: [PATCH] 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. --- src/ReC.Application/Results/Commands/InsertResultCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/Results/Commands/InsertResultCommand.cs b/src/ReC.Application/Results/Commands/InsertResultCommand.cs index 53d6f19..8d25e08 100644 --- a/src/ReC.Application/Results/Commands/InsertResultCommand.cs +++ b/src/ReC.Application/Results/Commands/InsertResultCommand.cs @@ -7,7 +7,7 @@ namespace ReC.Application.Results.Commands; public record InsertResultCommand : IInsertProcedure { public long? ActionId { get; set; } - public Status? Status { get; set; } + public required Status Status { get; set; } public string? Header { get; set; } public string? Body { get; set; } public string? Info { get; set; }