public static string Delete(string pIdDocente)
        {
            Docente Obj = new Docente();

            Obj.IdDocente = pIdDocente;

            DocenteDAL dal = new DocenteDAL();

            return(dal.Delete(Obj));
        }
        public static string Update(string pIdDocente, string pNombre, string pApellidoPat, string pApellidoMat, string pDNI, string pTelefono, string pDireccion)
        {
            Docente Obj = new Docente();

            Obj.IdDocente   = pIdDocente;
            Obj.Nombre      = pNombre;
            Obj.ApellidoPat = pApellidoPat;
            Obj.ApellidoMat = pApellidoMat;
            Obj.DNI         = pDNI;
            Obj.Telefono    = pTelefono;
            Obj.Direccion   = pDireccion;
            DocenteDAL dal = new DocenteDAL();

            return(dal.Update(Obj));
        }
Ejemplo n.º 3
0
 public DocenteBOL()
 {
     dal = new DocenteDAL();
 }