Exemplo n.º 1
0
 public void AlteraBairroDal(BairroModel bairroModel)
 {
     try
     {
         bairroDal = new BairroDal();
         bairroDal.AlteraBairroDal(bairroModel);
     }
     catch (Exception erro)
     {
         
         throw erro;
     }
 }
Exemplo n.º 2
0
 public void ExcluirBairroDal(BairroModel bairroModel)
 {
     try
     {
         bairroDal = new BairroDal();
         bairroDal.ExcluirBairroDal(bairroModel);
     }
     catch (Exception erro)
     {
         
         throw erro;
     }
 }
Exemplo n.º 3
0
 public DataTable ListaBairroDal()
 {
     DataTable dtBairro = new DataTable();
     try
     {
         bairroDal = new BairroDal();
         dtBairro = bairroDal.ListaBairro();
     }
     catch (Exception erro)
     {
         
         throw erro;
     }
     return dtBairro;
 }
Exemplo n.º 4
0
 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;
     }
 }