remove user consent services

This commit is contained in:
Sergio Matias Urquin
2025-05-12 21:54:02 -06:00
parent 7d760b589e
commit f6595ed1df
4 changed files with 1 additions and 93 deletions

View File

@@ -22,9 +22,7 @@ namespace Core.Cerberos.Application.UseCases.Users
IComponentHandler<LoginUserRequest>,
IComponentHandler<LogoutUserRequest>,
IComponentHandler<ValidateUserExistenceRequest>,
IComponentHandler<GetTokenAdapterRequest>,
IComponentHandler<GetConsentFormPDFRequest>,
IComponentHandler<AcceptUserConsentFormRequest>
IComponentHandler<GetTokenAdapterRequest>
{
private readonly IUserPort _port;
private readonly IValidator<ChangeUserStatusRequest> _changeUserStatusValidator;
@@ -380,48 +378,6 @@ namespace Core.Cerberos.Application.UseCases.Users
var result = await _cerberosDALService.GetTokenAdapter(command.Email, cancellationToken).ConfigureAwait(false);
if (result == null)
{
_port.NoContentSuccess();
return;
}
_port.Success(result);
}
catch (Exception ex)
{
ApiResponseHelper.EvaluatePort(ex, _port);
}
}
public async ValueTask ExecuteAsync(GetConsentFormPDFRequest command, CancellationToken cancellationToken = default)
{
try
{
ArgumentNullException.ThrowIfNull(command);
var _result = await _cerberosDALService.GetConsentFormPDFAsync(cancellationToken).ConfigureAwait(false);
if (_result == null)
{
_port.NoContentSuccess();
return;
}
_port.Success(_result);
}
catch (Exception ex)
{
ApiResponseHelper.EvaluatePort(ex, _port);
}
}
public async ValueTask ExecuteAsync(AcceptUserConsentFormRequest command, CancellationToken cancellationToken = default)
{
try
{
ArgumentNullException.ThrowIfNull(command);
var result = await _cerberosDALService.AcceptUserConsentFormAsync(cancellationToken).ConfigureAwait(false);
if (result == null)
{
_port.NoContentSuccess();