public static void MarkAsRemovedNote(String bookID, String ID) { Note note = GetNote(bookID, ID); if (note != null) { note.Removed = true; note.ModifiedUtc = DateTime.UtcNow; NotesDataAccessor.UpdateNote(note, ID); } }
public static void UpdateNote(Note note) { if (String.IsNullOrEmpty(URL.MultipleNoteURL)) { NotesDataAccessor.UpdateNote(note, note.PageID); } else { NotesDataAccessor.UpdateNote(note, note.NoteID); } }
public static String GetNumNotesInChapter(String bookID, String chapterID) { return(NotesDataAccessor.GetNumNotesInChapter(bookID, chapterID).ToString()); }
public static String GetNumNotesInBook(String bookID) { return(NotesDataAccessor.GetNumNotesInBook(bookID).ToString()); }
public static Note GetNote(String bookID, String ID) { return(NotesDataAccessor.GetNote(bookID, ID)); }
public static nint GetNumPagesThatHaveNotesInChapter(String bookID, String chapterID) { return(NotesDataAccessor.GetNumPagesThatHaveNotesInChapter(bookID, chapterID)); }
public static List <Note> GetNotesInChapter(String bookID, String chapterID) { return(NotesDataAccessor.GetNotesInChapter(bookID, chapterID)); }
public static List <Note> GetNotes(String bookID, String pageID) { return(NotesDataAccessor.GetNotes(bookID, pageID)); }
public static List <Note> GetAllNotes(String bookID) { return(NotesDataAccessor.GetAllNotes(bookID)); }
public static void RemoveOrphanNotes(String bookID, List <Page> pageList) { NotesDataAccessor.RemoveOrphanNotes(bookID, pageList); }
public static void RemoveAllNotesForThisPage(String bookID, String pageID) { NotesDataAccessor.RemoveAllNotesForThisPage(bookID, pageID); }
public static void RemoveNote(String bookID, String ID) { NotesDataAccessor.RemoveNote(bookID, ID); }