Beispiel #1
0
        public void Eliminar(Periodos peri)
        {
            PeriodosDatos datos = new PeriodosDatos();

            if (datos.SeleccionarPorId(peri.Codigo) == null)
                throw new ApplicationException("El periodo no existe");

            datos.Eliminar(peri);
        }
Beispiel #2
0
        public void Guardar(Periodos peri)
        {
            if (peri.Nombre.Length == 0)
                throw new ApplicationException("Debe digitar el nombre del periodo");

            PeriodosDatos datos = new PeriodosDatos();
            datos.Insertar(peri);

        }
Beispiel #3
0
 public List<Periodos> SeleccionarTodos()
 {
     PeriodosDatos datos = new PeriodosDatos();
     return datos.SeleccionarTodos();
 }