Beispiel #1
0
        public void Guardar(Referencia ent)
        {
            // InformeVistaAlHogar ent = new InformeVistaAlHogar();
            if (ent.Numero == 0)
            {
                throw new ApplicationException("Debe digitar el nombre");
            }

            InformeVistaHogarDatos datos = new InformeVistaHogarDatos();

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

            return(datos.SeleccionarTodos());
        }