public bool Alter(Municipio county) { try { DadosdoMunicipo.Alterar(county); return true; } catch (Exception e) { throw e; } }
public bool Delete(Municipio county) { try { DadosdoMunicipo.Excluir(county); return true; } catch (Exception e) { throw e; } }
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; } }
// Construtor sem Pk public Bairro( Municipio City, string Name) { Municipio_Bairro = City.Cod_municipio1; Nome = Name; }