public bool Actualizar(clsCategoriaDocente CategoriaDocente) { try { return(CategoriaDocente.Actualizar()); } catch (System.Exception Ex) { throw new System.Exception("Imposible actualizar la categoría docente.", Ex); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }