public static NoteInfoList NoteFetchInfoList(int sourceId, SourceType sourceType) { return (NoteRepository.NoteFetchInfoList( new NoteDataCriteria { SourceId = new[] { sourceId }, SourceTypeId = (int)sourceType })); }
public static Note NoteSave(Note note) { if (!note.IsValid) { return(note); } Note result; if (note.IsNew) { result = NoteRepository.NoteInsert(note); } else { result = NoteRepository.NoteUpdate(note); } return(result); }
public static bool NoteDelete(int noteId) { return(NoteRepository.NoteDelete( NoteRepository.NoteFetch(noteId))); }