Exemple #1
0
        private bool ValidaCnpjFornecedor(string Cnpj)
        {
            var cnpjExistente = forn.SelecionarPorCnpj(Regex.Replace(Cnpj, @"[^0-9]+?", ""));

            if (cnpjExistente.Cnpj != null && cnpjExistente.Cnpj == Regex.Replace(Cnpj, @"[^0-9]+?", ""))
            {
                return(false);
            }

            return(true);
        }