private void AddPDFAnnouncement(string header, byte[] body, bool isDeleted, DateTime startDate, DateTime endDate)
        {
            AnnouncementsPDF newpdf = new AnnouncementsPDF();

            newpdf.pdfHeader        = header;
            newpdf.pdfBody          = body;
            newpdf.isDeleted        = false;
            newpdf.displayStartDate = startDate;
            newpdf.displayEndDate   = endDate;
            newpdf.createdByUserID  = globals.CurrentUser.UserID;
            PDFAnnouncementsRepository.Instance.Service.Add(newpdf);
            InitializePage();
        }
Exemple #2
0
 public void DeletePDF(AnnouncementsPDF note)
 {
     PDFAnnouncementsRepository.Instance.Service.Delete(note.pdfID);
     PDFCollection.Remove(note);
 }