Exemple #1
0
 private void ValidarDuplicidadeMovimento(string numeroMovimento, string cnpj)
 {
     if (Service.VerificarExistencia(numeroMovimento, cnpj))
     {
         throw new Exception($"O movimento de número {numeroMovimento} já foi importado anteriormente.");
     }
 }
        private void ValidarDuplicidadeMovimento(string numeroMovimento, string nomeArquivo)
        {
            if (_service.VerificarExistencia(numeroMovimento))
            {
                throw new Exception($"O movimento de número {numeroMovimento} já foi importado anteriormente.");
            }

            //if (_logImportacaoApp.VerificarExistencia(nomeArquivo))
            //    throw new Exception($"O arquivo {nomeArquivo} já foi importado anteriormente.");
        }