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); } }
public List <Referencia> SeleccionarTodos() { InformeVistaHogarDatos datos = new InformeVistaHogarDatos(); return(datos.SeleccionarTodos()); }