Exemplo n.º 1
0
 public bool Actualizar(clsCategoriaDocente CategoriaDocente)
 {
     try
     {
         return(CategoriaDocente.Actualizar());
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible actualizar la categoría docente.", Ex);
     }
 }
Exemplo n.º 2
0
 public bool Agregar(clsCategoriaDocente CategoriaDocente)
 {
     try
     {
         return(System.Convert.ToBoolean(CategoriaDocente.Agregar()));
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible agregar la categoría docente.", Ex);
     }
 }
Exemplo n.º 3
0
 public clsCategoriaDocente getCategoriaDocenteClass()
 {
     try
     {
         clsCategoriaDocente CategoriaDocente = new clsCategoriaDocente();
         return(CategoriaDocente);
     }
     catch (System.Exception Ex)
     {
         string strErrorMessage = "Error al devolver la clase para los datos de la categoría docente.";
         throw new System.Exception(strErrorMessage, Ex);
     }
 }
Exemplo n.º 4
0
 public DataView getAllCategoriasDocentes()
 {
     try
     {
         clsCategoriaDocente CategoriaDocente     = new clsCategoriaDocente();
         DataView            dvCategoriasDocentes = CategoriaDocente.getAllRecords().DefaultView;
         CategoriaDocente = null;
         return(dvCategoriasDocentes);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible recuperar la lista de las categorías docentes.", Ex);
     }
 }
Exemplo n.º 5
0
 public string[] WhyCanNotBeDeleted(System.Byte Id)
 {
     try
     {
         clsCategoriaDocente CategoriaDocente = new clsCategoriaDocente();
         string[]            aryResult        = CategoriaDocente.WhyCanNotBeDeleted(Id);
         CategoriaDocente = null;
         return(aryResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Error al recuperar la(s) causa que impide eliminar la categoría docente.", Ex);
     }
 }
Exemplo n.º 6
0
 public bool canBeDeleted(System.Byte Id)
 {
     try
     {
         clsCategoriaDocente CategoriaDocente = new clsCategoriaDocente();
         bool boResult = CategoriaDocente.canBeDeleted(Id);
         CategoriaDocente = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Error al comprobar si puede ser eliminada la categoría docente.", Ex);
     }
 }
Exemplo n.º 7
0
 public bool Eliminar(System.Byte Id)
 {
     try
     {
         clsCategoriaDocente CategoriaDocente = new clsCategoriaDocente();
         bool boResult = CategoriaDocente.Eliminar(Id);
         CategoriaDocente = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible eliminar la categoría docente.", Ex);
     }
 }