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.
This commit is contained in:
2026-01-16 11:09:02 +01:00
parent 489180f5a1
commit 36fe78e152

View File

@@ -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<ResultView> repo) : IRequestHandler<CreateResultViewCommand>
{
public Task Handle(CreateResultViewCommand request, CancellationToken cancel) => repo.CreateAsync(request, cancel);
}