public void ModificarDocente(Docente d) { try { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); _objServicioD.Modificar(d); } catch (Exception ex) { throw ex; } }
//public Docente getDocente(string userName) public Docente getDocente(Docente d) { try { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); return(_objServicioD.Buscar(d.NOMBRE_USUARIO)); } catch (Exception ex) { throw ex; } }
public List <Docente> ListarDocentes() { try { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); return(_objServicioD.Listar()); } catch (Exception ex) { throw ex; } }
public void NuevoDocente(Docente d) { try { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); _objServicioD.Alta(d); } catch (Exception ex) { throw ex; } }
public Usuario getLoginUsuario(string NombreUsuario, string Pass) { try { ServicioRemoting.ServicioAlumno _objServicioA = new ServicioRemoting.ServicioAlumno(); Entidades.Alumno a = _objServicioA.LoginAlumno(NombreUsuario, Pass); if (a != null) { return(a); } else { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); Entidades.Docente d = _objServicioD.LoginDocente(NombreUsuario, Pass); return(d); } } catch (Exception ex) { throw ex; } }
public Usuario getLoginUsuario(string NombreUsuario, string Pass) { try { ServicioRemoting.ServicioAlumno _objServicioA = new ServicioRemoting.ServicioAlumno(); Entidades.Alumno a =_objServicioA.LoginAlumno(NombreUsuario, Pass); if (a != null) { return a; } else { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); Entidades.Docente d = _objServicioD.LoginDocente(NombreUsuario, Pass); return d; } } catch (Exception ex) { throw ex; } }
//public Docente getDocente(string userName) public Docente getDocente(Docente d) { try { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); return (_objServicioD.Buscar(d.NOMBRE_USUARIO)); } catch (Exception ex) { throw ex; } }
public List<Docente> ListarDocentes() { try { ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente(); return _objServicioD.Listar(); } catch (Exception ex) { throw ex; } }