From d3d5ebac619a28f6912ed00178a2a7f93a079bb2 Mon Sep 17 00:00:00 2001 From: TekH Date: Thu, 16 Apr 2026 09:51:15 +0200 Subject: [PATCH] Rename InvokeReferencesDto to InvokeReferences project-wide Replaced all usages of InvokeReferencesDto with InvokeReferences across controllers, commands, and DTOs. This change standardizes the reference type naming by removing the "Dto" suffix, with no changes to the structure or behavior. --- src/ReC.API/Controllers/RecActionController.cs | 2 +- .../Common/Procedures/UpdateProcedure/Dto/UpdateResultDto.cs | 2 +- .../RecActions/Commands/InvokeBatchRecActionViewsCommand.cs | 2 +- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 4 ++-- src/ReC.Application/Results/Commands/InsertResultCommand.cs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ReC.API/Controllers/RecActionController.cs b/src/ReC.API/Controllers/RecActionController.cs index 690e03e..2609cce 100644 --- a/src/ReC.API/Controllers/RecActionController.cs +++ b/src/ReC.API/Controllers/RecActionController.cs @@ -19,7 +19,7 @@ public class RecActionController(IMediator mediator) : ControllerBase /// An HTTP 202 Accepted response indicating the process has been started. [HttpPost("invoke/{profileId}")] [ProducesResponseType(StatusCodes.Status202Accepted)] - public async Task Invoke([FromRoute] long profileId, [FromBody] InvokeReferencesDto? references = null, CancellationToken cancel = default) + public async Task Invoke([FromRoute] long profileId, [FromBody] InvokeReferences? references = null, CancellationToken cancel = default) { await mediator.Send(new InvokeBatchRecActionViewsCommand { diff --git a/src/ReC.Application/Common/Procedures/UpdateProcedure/Dto/UpdateResultDto.cs b/src/ReC.Application/Common/Procedures/UpdateProcedure/Dto/UpdateResultDto.cs index 7639551..16e821d 100644 --- a/src/ReC.Application/Common/Procedures/UpdateProcedure/Dto/UpdateResultDto.cs +++ b/src/ReC.Application/Common/Procedures/UpdateProcedure/Dto/UpdateResultDto.cs @@ -11,5 +11,5 @@ public record UpdateResultDto public short? Info { get; set; } public string? InfoDetail { get; set; } public string? Error { get; set; } - public InvokeReferencesDto? References { get; set; } + public InvokeReferences? References { get; set; } } \ No newline at end of file diff --git a/src/ReC.Application/RecActions/Commands/InvokeBatchRecActionViewsCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeBatchRecActionViewsCommand.cs index 472f7fa..96667d9 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeBatchRecActionViewsCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeBatchRecActionViewsCommand.cs @@ -9,7 +9,7 @@ namespace ReC.Application.RecActions.Commands; public record InvokeBatchRecActionViewsCommand : IRequest { public long ProfileId { get; init; } - public InvokeReferencesDto? References { get; init; } + public InvokeReferences? References { get; init; } } public class InvokeRecActionViewsCommandHandler(ISender sender, ILogger? logger = null) : IRequestHandler diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index fa044a2..7a0ea9b 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -18,10 +18,10 @@ namespace ReC.Application.RecActions.Commands; public record InvokeRecActionViewCommand : IRequest { public RecActionViewDto Action { get; set; } = null!; - public required InvokeReferencesDto References { get; set; } + public required InvokeReferences References { get; set; } } -public record InvokeReferencesDto +public record InvokeReferences { public required string BatchId { get; init; } public string? Reference1 { get; init; } diff --git a/src/ReC.Application/Results/Commands/InsertResultCommand.cs b/src/ReC.Application/Results/Commands/InsertResultCommand.cs index 41631d7..48d9fef 100644 --- a/src/ReC.Application/Results/Commands/InsertResultCommand.cs +++ b/src/ReC.Application/Results/Commands/InsertResultCommand.cs @@ -15,7 +15,7 @@ public record InsertResultCommand : IInsertProcedure public string? InfoDetail { get; set; } public string? Error { get; set; } public required ResultType Type { get; set; } - public InvokeReferencesDto? References { get; set; } + public InvokeReferences? References { get; set; } } public class InsertResultProcedureHandler(ISender sender) : IRequestHandler