Mark CreateOutResCommandHandler and MappingProfiles obsolete

Both CreateOutResCommandHandler and the MappingProfiles constructor are now marked with [Obsolete] attributes, warning developers to use the related procedure or view instead. This signals that these components are deprecated and may be removed in the future.
This commit is contained in:
2026-01-12 10:59:24 +01:00
parent 9191ec4179
commit 71470fc21d
2 changed files with 2 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ public class CreateOutResCommand : IRequest
public string? AddedWho { get; set; }
}
[Obsolete("Use the related procedure or view.")]
public class CreateOutResCommandHandler(IRepository<OutRes> repo) : IRequestHandler<CreateOutResCommand>
{
public Task Handle(CreateOutResCommand request, CancellationToken cancel)

View File

@@ -6,6 +6,7 @@ namespace ReC.Application.OutResults;
// TODO: update to inject AddedWho from the current host/user contex
public class MappingProfiles : AutoMapper.Profile
{
[Obsolete("Use the related procedure or view.")]
public MappingProfiles()
{
CreateMap<CreateOutResCommand, OutRes>()