Esempio n. 1
0
        public async Task <CommentEntryFixed> CreateComment([FromRoute] string nodeId, [FromBody] CommentBody body)
        {
            var comment = await _alfrescoHttpClient.CreateComment(nodeId, body);

            try
            {
                var nodeInfo = await _alfrescoHttpClient.GetNodeInfo(nodeId);

                var pid = nodeInfo?.GetPid();
            }
            catch (Exception ex)
            {
                Log.Logger?.Error(ex, "Audit log failed");
            }


            return(comment);
        }
Esempio n. 2
0
 public async Task <CommentEntryFixed> CreateComment([FromRoute] string nodeId, [FromBody] CommentBody body)
 {
     return(await _alfrescoHttpClient.CreateComment(nodeId, body));
 }