public static int InsereDistrito(Distrito d) { try { if (!ExisteDistrito(d.Nome)) { return(Distritos.InsereDistrito(d)); } else { return(0); } } catch (Exception e) { throw new Exception("Erro ao inserir distrito " + e.Message); } }