示例#1
0
        public Boletin Create(Boletin entity)

        {
            if (Verificar(entity))
            {
                DateTime ff = new DateTime(entity.año, entity.cutrimeste * 2 + 3, 30);

                //if (DateTime.Now >= ff)
                //{
                //    return null;
                //}
                //else
                //{
                BoletinDAC asistenciaDAC = new BoletinDAC();

                PDFboletinComponent pDFboletinComponent = new PDFboletinComponent();
                pDFboletinComponent.GenerarPDF(entity);

                return(asistenciaDAC.Create(entity));
                //}
            }
            else
            {
                return(null);
            }
        }
示例#2
0
        public void Delete(int id)
        {
            BoletinDAC          asistenciaDAC       = new BoletinDAC();
            PDFboletinComponent pDFboletinComponent = new PDFboletinComponent();
            BoletinComponent    boletinComponent    = new BoletinComponent();

            pDFboletinComponent.BorroaPDF(boletinComponent.ReadBy(id));
            asistenciaDAC.Delete(id);
        }