From cf34a54170cdd221c1ab3fe9c260318ae70a94e4 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 14 Jan 2026 14:36:30 +0100 Subject: [PATCH] Mark CreateResultViewCommand as obsolete, add handler CreateResultViewCommand is now marked obsolete, advising use of related procedures or views instead. Added an obsolete CreateResultViewCommandHandler that delegates creation to the repository. --- .../OutResults/Commands/CreateResultViewCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs b/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs index 74ee2ce..60da599 100644 --- a/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs +++ b/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs @@ -6,6 +6,7 @@ using System.Text.Json.Serialization; namespace ReC.Application.OutResults.Commands; +[Obsolete("Use the related procedure or view.")] public class CreateResultViewCommand : IAuthScoped, IRequest { public required long ActionId { get; set; } @@ -20,6 +21,7 @@ public class CreateResultViewCommand : IAuthScoped, IRequest public AuthScope Scope { get; } = new(); } +[Obsolete("Use the related procedure or view.")] public class CreateResultViewCommandHandler(IRepository repo) : IRequestHandler { public Task Handle(CreateResultViewCommand request, CancellationToken cancel) => repo.CreateAsync(request, cancel);