コード例 #1
0
ファイル: CommentService.cs プロジェクト: Rista5/Newsman
        public CommentDTO CreateComment(CommentDTO value)
        {
            CommentDTO dataResult = commentDataAccess.CreateComment(value);

            if (dataResult != null)
            {
                MessageQueueManager menager = MessageQueueManager.Instance;
                menager.PublishMessage(dataResult.BelongsToNewsId, dataResult.Id, dataResult, MessageOperation.Insert);
            }
            return(dataResult);
        }