コード例 #1
0
 private bool SetDocumentComments(DocumentCommentBEO documentComment)
 {
     try
     {
         var collectionId    = documentComment.CollectionId.ToString();
         var documentId      = documentComment.DocumentId;
         var matterId        = documentComment.MatterId.ToString();
         var documentService = new DocumentService(_session);
         return(documentService.AddComment(documentComment, true));
     }
     catch (Exception)
     {
         //LogJobException(ErrorCodes.ErrorDcbImportCreateDocumentComments, String.Format(Constants.ErrorCreateDocumentComments, currentDocumentId),
         //                                                                                                    false,
         //                                                                                                    exp.Message);
         Tracer.Error("Tag Comment Worker: Unable to set the comment to document id: {0}",
                      documentComment.DocumentId);
         return(false);
     }
 }
コード例 #2
0
 private bool SetDocumentComments(DocumentCommentBEO documentComment)
 {
     try
     {
         var collectionId = documentComment.CollectionId.ToString();
         var documentId = documentComment.DocumentId;
         var matterId = documentComment.MatterId.ToString();
         var documentService = new DocumentService(_session);
         return documentService.AddComment(documentComment, true);
     }
     catch (Exception)
     {
         //LogJobException(ErrorCodes.ErrorDcbImportCreateDocumentComments, String.Format(Constants.ErrorCreateDocumentComments, currentDocumentId),
         //                                                                                                    false,
         //                                                                                                    exp.Message);
         Tracer.Error("Tag Comment Worker: Unable to set the comment to document id: {0}",
                      documentComment.DocumentId);
         return false;
     }
 }