From 6720e66b23a6ab771b0cd2e99c729ecdc26f9aec Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 12 Jan 2026 11:00:21 +0100 Subject: [PATCH] Mark DeleteOutResCommand and related classes as obsolete Added the [Obsolete("Use the related procedure or view.")] attribute to DeleteOutResCommand, its handler, and its validator to indicate these should no longer be used and to guide consumers toward the recommended procedure or view. --- src/ReC.Application/OutResults/Commands/DeleteOutResCommand.cs | 2 ++ .../OutResults/Commands/DeleteOutResCommandValidator.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ReC.Application/OutResults/Commands/DeleteOutResCommand.cs b/src/ReC.Application/OutResults/Commands/DeleteOutResCommand.cs index c92552a..838357b 100644 --- a/src/ReC.Application/OutResults/Commands/DeleteOutResCommand.cs +++ b/src/ReC.Application/OutResults/Commands/DeleteOutResCommand.cs @@ -11,6 +11,7 @@ namespace ReC.Application.OutResults.Commands; /// Deletion can be performed by providing either an or a . /// At least one of these properties must be set for the operation to proceed. /// +[Obsolete("Use the related procedure or view.")] public record DeleteOutResCommand : IRequest { /// @@ -27,6 +28,7 @@ public record DeleteOutResCommand : IRequest /// /// Handles the execution of the . /// +[Obsolete("Use the related procedure or view.")] public class DeleteOutResCommandHandler(IRepository repo) : IRequestHandler { /// diff --git a/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs b/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs index 843a6cd..a8ef362 100644 --- a/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs +++ b/src/ReC.Application/OutResults/Commands/DeleteOutResCommandValidator.cs @@ -2,6 +2,7 @@ using FluentValidation; namespace ReC.Application.OutResults.Commands; +[Obsolete("Use the related procedure or view.")] public class DeleteOutResCommandValidator : AbstractValidator { public DeleteOutResCommandValidator()