From 36fe78e152d854c1f2395b31852fd41fa83c0aed Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 16 Jan 2026 11:09:02 +0100 Subject: [PATCH] Remove obsolete CreateResultViewCommand and handler Deleted the CreateResultViewCommand.cs file, including the obsolete CreateResultViewCommand and CreateResultViewCommandHandler classes. These were previously used for creating ResultView entities, but are now replaced by related procedures or views. All associated code and using directives have been removed. --- .../Commands/CreateResultViewCommand.cs | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs diff --git a/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs b/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs deleted file mode 100644 index 60da599..0000000 --- a/src/ReC.Application/OutResults/Commands/CreateResultViewCommand.cs +++ /dev/null @@ -1,28 +0,0 @@ -using DigitalData.Core.Abstraction.Application.Repository; -using MediatR; -using ReC.Application.Common.Interfaces; -using ReC.Domain.Views; -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; } - - public required short StatusCode { get; set; } - - public string? Header { get; set; } - - public string? Body { get; set; } - - [JsonIgnore] - 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); -} \ No newline at end of file