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