Example #1
0
 public List <CatTemas> list(string filtro = null)
 {
     try
     {
         CatTemasDAL _cattemasDAL = new CatTemasDAL();
         return(_cattemasDAL.obtenerTemas(filtro));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Example #2
0
 public void modificarTema(CatTemas _cattemas)
 {
     try
     {
         CatTemasDAL _cattemasDAL = new CatTemasDAL();;
         _cattemasDAL.modificarTema(_cattemas);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Example #3
0
 public void eliminarTema(CatTemas _cattemas)
 {
     try
     {
         CatTemasDAL _cattemasDAL = new CatTemasDAL();
         _cattemasDAL.eliminarTema(_cattemas);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Example #4
0
 public int insertarTema(CatTemas _cattemas)
 {
     try
     {
         CatTemasDAL _cattemasDAL = new CatTemasDAL();
         return(_cattemasDAL.insertarTema(_cattemas));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }