Example #1
0
 public void DEL_Mascota(int codigo)
 {
     try
     {
         this.IniciarTransaccion();
         AD_Mascota objMascota = new AD_Mascota();
         objMascota.DEL_Mascota(this.comando, codigo);
         this.ConfirmarTransaccion();
     }
     catch (Exception exc)
     {
         this.DeshacerTransaccion();
         throw exc;
     }
 }
Example #2
0
 public void CRE_Mascota(MOD_Mascota obj)
 {
     try
     {
         this.IniciarTransaccion();
         AD_Mascota objMascota = new AD_Mascota();
         objMascota.CRE_Mascota(this.comando, obj);
         this.ConfirmarTransaccion();
     }
     catch (Exception exc)
     {
         this.DeshacerTransaccion();
         throw exc;
     }
 }
Example #3
0
 public List<MOD_Mascota> SEL_Grid_Mascota(string buscar)
 {
     try
     {
         this.AbrirConexion();
         AD_Mascota objMascota = new AD_Mascota();
         List<MOD_Mascota> lista = objMascota.SEL_Grid_Mascota(this.comando,buscar);
         this.CerrarConexion();
         return lista;
     }
     catch (Exception exc)
     {
         this.CerrarConexion();
         throw exc;
     }
 }
Example #4
0
 public MOD_Mascota SEL_Grid_By_Id_Mascota(int codigo)
 {
     try
     {
         this.AbrirConexion();
         AD_Mascota objMascota = new AD_Mascota();
         MOD_Mascota objMascotaResponsable = objMascota.SEL_Grid_By_Id_Mascota(this.comando, codigo);
         this.CerrarConexion();
         return objMascotaResponsable;
     }
     catch (Exception exc)
     {
         this.CerrarConexion();
         throw exc;
     }
 }