Ejemplo n.º 1
0
        // VERIFICAR SE EXISTE CONTA COM O CPF INFORMADO
        public async Task <bool> ExistContaFindByCPF(HelperContaDto helperContaDto)
        {
            bool existe = await _repo.ExistContaFindByCpf(helperContaDto.CPF, helperContaDto.AgenciaDestino, helperContaDto.ContaDestino);

            if (existe)
            {
                return(existe);
            }
            throw new NotFoundException("Nenhuma conta com esse CPF");
        }