public bool UpdateComment(int id, string content) { bool result = false; CommentDTO dataResult = commentDataAccess.UpdateComment(id, content); if (dataResult != null) { MessageQueueManager menager = MessageQueueManager.Instance; menager.PublishMessage(dataResult.BelongsToNewsId, dataResult.Id, dataResult, MessageOperation.Update); result = true; } return(result); }