Example #1
0
 public INoteContent[] GetNoteContent(string userId, string noteId)
 {
     if (_rightsRepository.CanUserReadNote(Guid.Parse(userId), Guid.Parse(noteId)))
     {
         return(_noteRepository.GetNoteContent(Guid.Parse(userId), Guid.Parse(noteId)) as INoteContent[]);
     }
     else
     {
         throw new Exception("No access to read note.\n");
     }
 }