Exemple #1
0
        public override void Guardar()
        {
            EntrevistaEstudiante ent = new EntrevistaEstudiante();

            if (ent.Numero == 0)
            {
                throw new ApplicationException("Debe digitar el nombre");
            }

            EntrevistaEstudianteDatos datos = new EntrevistaEstudianteDatos();

            if (datos.SeleccionarPorId(ent.Numero) == null)
            {
                datos.Insertar(ent);
            }
            else
            {
                datos.Actualizar(ent);
            }
        }
Exemple #2
0
        public List <EntrevistaEstudiante> SeleccionarTodos()
        {
            EntrevistaEstudianteDatos datos = new EntrevistaEstudianteDatos();

            return(datos.SeleccionarTodos());
        }