Ejemplo n.º 1
0
 public void ModificarDocente(Docente d)
 {
     try
     {
         ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente();
         _objServicioD.Modificar(d);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 //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;
     }
 }
Ejemplo n.º 3
0
 public List <Docente> ListarDocentes()
 {
     try
     {
         ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente();
         return(_objServicioD.Listar());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 4
0
 public void NuevoDocente(Docente d)
 {
     try
     {
         ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente();
         _objServicioD.Alta(d);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 5
0
        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;
            }
        }
Ejemplo n.º 6
0
        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;
            }
        }
Ejemplo n.º 7
0
 //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;
     }
 }
Ejemplo n.º 8
0
 public void NuevoDocente(Docente d)
 {
     try
     {
         ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente();
         _objServicioD.Alta(d);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 9
0
 public void ModificarDocente(Docente d)
 {
     try
     {
         ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente();
         _objServicioD.Modificar(d);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 10
0
 public List<Docente> ListarDocentes()
 {
     try
     {
         ServicioRemoting.ServicioDocente _objServicioD = new ServicioRemoting.ServicioDocente();
         return _objServicioD.Listar();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }