private void AddNoteAnnouncement(string header, string body, bool isDeleted, DateTime startDate, DateTime endDate)
        {
            AnnouncementsNote newNote = new AnnouncementsNote();

            newNote.announcementHeader = header;
            newNote.announcementBody   = body;
            newNote.isDeleted          = false;
            newNote.displayStartDate   = startDate;
            newNote.displayEndDate     = endDate;
            newNote.createdByUserID    = globals.CurrentUser.UserID;

            NoteAnnouncementsRepository.Instance.Service.Add(newNote);
            InitializePage();
        }
Ejemplo n.º 2
0
 public void DeleteNote(AnnouncementsNote note)
 {
     NoteAnnouncementsRepository.Instance.Service.Delete(note.noteID);
     NotesCollection.Remove(note);
 }