adding more stuff
All checks were successful
API and ETL Build / build_etl (push) Successful in 2s
API and ETL Build / build_api (push) Successful in 14s

This commit is contained in:
2025-05-31 14:43:37 -03:00
parent e00cabb840
commit 146495c07b
5 changed files with 46 additions and 0 deletions

View File

@@ -94,5 +94,19 @@ namespace OpenCand.API.Services
RedesSociais = result.OrderByDescending(r => r.Ano).ToList()
};
}
public async Task<CpfRevealResult> GetCandidatoCpfById(Guid idcandidato)
{
var result = await candidatoRepository.GetCandidatoCpfAsync(idcandidato);
if (result == null)
{
return new CpfRevealResult();
}
return new CpfRevealResult()
{
Cpf = result
};
}
}
}