From aae42949b6519135b6dc7335402bbd216602710a Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 15 Apr 2026 13:14:17 +0200 Subject: [PATCH] Refactor InsertResultCommand references into DTO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced Reference1–5 string properties in InsertResultCommand with a single References property of type InvokeReferencesDto? for better maintainability. Added necessary using directive for the new DTO. --- .../Results/Commands/InsertResultCommand.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ReC.Application/Results/Commands/InsertResultCommand.cs b/src/ReC.Application/Results/Commands/InsertResultCommand.cs index 819d04f..4a47e02 100644 --- a/src/ReC.Application/Results/Commands/InsertResultCommand.cs +++ b/src/ReC.Application/Results/Commands/InsertResultCommand.cs @@ -1,5 +1,6 @@ using MediatR; using ReC.Application.Common.Procedures.InsertProcedure; +using ReC.Application.RecActions.Commands; using ReC.Domain.Constants; namespace ReC.Application.Results.Commands; @@ -14,11 +15,7 @@ public record InsertResultCommand : IInsertProcedure public string? InfoDetail { get; set; } public string? Error { get; set; } public required ResultType Type { get; set; } - public string? Reference1 { get; set; } - public string? Reference2 { get; set; } - public string? Reference3 { get; set; } - public string? Reference4 { get; set; } - public string? Reference5 { get; set; } + public InvokeReferencesDto? References { get; set; } } public class InsertResultProcedureHandler(ISender sender) : IRequestHandler