Ejemplo n.º 1
0
 public bool Alter(Municipio county)
 {
     try
     {
         DadosdoMunicipo.Alterar(county);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Ejemplo n.º 2
0
 public bool Delete(Municipio county)
 {
     try
     {
         DadosdoMunicipo.Excluir(county);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Ejemplo n.º 3
0
        public bool Insert(string estado, string nome)
        {
            EstadoNegocio estadoNegocio = new EstadoNegocio();

            Estado state = estadoNegocio.Buscar(estado);

            Municipio municipio = new Municipio(state, nome);
            try
            {
                DadosdoMunicipo.Inserir(municipio);
                return true;
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Ejemplo n.º 4
0
 // Construtor sem Pk
 public Bairro( Municipio City, string Name)
 {
     Municipio_Bairro = City.Cod_municipio1;
     Nome = Name;
 }