コード例 #1
0
ファイル: ContaService.cs プロジェクト: Deyvison1/BCD
        // 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");
        }