diff --git a/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs b/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs index 23d32e5..c681940 100644 --- a/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs +++ b/src/ReC.Application/Endpoints/Commands/ObtainEndpointCommand.cs.cs @@ -7,11 +7,13 @@ using ReC.Domain.Entities; namespace ReC.Application.Endpoints.Commands; +[Obsolete("Use the related procedure or view.")] public class ObtainEndpointCommand : IRequest { public string Uri { get; init; } = null!; } +[Obsolete("Use the related procedure or view.")] public class ObtainEndpointCommandHandler(IRepository repo, IMapper mapper) : IRequestHandler { public async Task Handle(ObtainEndpointCommand request, CancellationToken cancel) diff --git a/src/ReC.Application/Endpoints/MappingProfile.cs b/src/ReC.Application/Endpoints/MappingProfile.cs index 808af03..a5c5a68 100644 --- a/src/ReC.Application/Endpoints/MappingProfile.cs +++ b/src/ReC.Application/Endpoints/MappingProfile.cs @@ -6,6 +6,7 @@ namespace ReC.Application.Endpoints; // TODO: update to inject AddedWho from the current host/user contex public class MappingProfile : AutoMapper.Profile { + [Obsolete("Use the related procedure or view.")] public MappingProfile() { CreateMap()