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); } }
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; } }