From c3e3a0377dd3339b3b28720da5bac9a03d0fe322 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 14 Jan 2026 14:40:30 +0100 Subject: [PATCH] Switch to InsertResultProcedure for result handling Replaced CreateOutResCommand with InsertResultProcedure when sending results. Updated property names (StatusId instead of Status) and now use ToObjectProcedure to include AddedWho. Added InsertProcedure namespace import. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index 521e56c..a1040da 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -4,6 +4,7 @@ using ReC.Application.Common; using ReC.Application.Common.Constants; using ReC.Application.Common.Dto; using ReC.Application.Common.Exceptions; +using ReC.Application.Common.Procedures.InsertProcedure; using ReC.Application.OutResults.Commands; using ReC.Domain.Constants; using System.Net; @@ -133,14 +134,13 @@ public class InvokeRecActionViewCommandHandler( var statusCode = (short)response.StatusCode; - await sender.Send(new CreateOutResCommand + await sender.Send(new InsertResultProcedure() { - Status = statusCode, + StatusId = statusCode, ActionId = action.Id, Header = JsonSerializer.Serialize(resHeaders, options: new() { WriteIndented = false }), - Body = resBody, - AddedWho = config?["AddedWho"] - }, cancel); + Body = resBody + }.ToObjectProcedure(config?["AddedWho"]), cancel); return response.IsSuccessStatusCode; }