Esempio n. 1
0
 public static NoteInfoList NoteFetchInfoList(int sourceId, SourceType sourceType)
 {
     return
         (NoteRepository.NoteFetchInfoList(
              new NoteDataCriteria
     {
         SourceId = new[] { sourceId },
         SourceTypeId = (int)sourceType
     }));
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public static bool NoteDelete(int noteId)
 {
     return(NoteRepository.NoteDelete(
                NoteRepository.NoteFetch(noteId)));
 }