static void Main(string[] args) { FornecedoresBLL.AdicionarFornecedor("Loja AZ Informatica", "Rua Abcde, 1222", "90000-000", "São Paulo", "00,000.000/0000-00"); String.IsNullOrEmpty(""); String.IsNullOrWhiteSpace(""); throw new Exception("Você deve informar o nome fantasia para fazer a inserção do registro."); }
static void Main(string[] args) { try { FornecedoresBLL.AdicionarFornecedor("Loja AZ Informatica", "Rua Abcde, 1222", "90000-000", "São Paulo", "00,000.000/0000-00"); } catch { throw new Exception("Ocorreu um erro ao adicionar o fornecedor na base de dados. Erro: {0}"); } }