public void AlteraBairroDal(BairroModel bairroModel) { try { bairroDal = new BairroDal(); bairroDal.AlteraBairroDal(bairroModel); } catch (Exception erro) { throw erro; } }
public void ExcluirBairroDal(BairroModel bairroModel) { try { bairroDal = new BairroDal(); bairroDal.ExcluirBairroDal(bairroModel); } catch (Exception erro) { throw erro; } }
public DataTable ListaBairroDal() { DataTable dtBairro = new DataTable(); try { bairroDal = new BairroDal(); dtBairro = bairroDal.ListaBairro(); } catch (Exception erro) { throw erro; } return dtBairro; }
public BairroModel PesuisarDal(string pesquisar) { try { BairroModel obj_bairro = new BairroModel(); bairroDal = new BairroDal(); obj_bairro = bairroDal.Pesquisar(pesquisar); //return bairroDal.Pesquisar(pesquisar); return obj_bairro; } catch (Exception erro) { throw erro; } }