Example #1
0
 public NoteAccessRight CreateUserNote(string changeUserId, string userId, string noteId, string userRights)
 {
     if (_rightsRepository.CanUserAddUsersToNote(Guid.Parse(userId), Guid.Parse(noteId)))
     {
         return(_userNoteRepository.CreateUserNote(Guid.Parse(changeUserId), Guid.Parse(userId), Guid.Parse(noteId), userRights));
     }
     else
     {
         throw new Exception("No access to add users to note.\n");
     }
 }