Exemplo n.º 1
0
        public async Task AddNewsCommentTokens(LiquidObject liquidObject, NewsItem newsItem, NewsComment newsComment, Store store, Language language)
        {
            var liquidNewsComment = new LiquidNewsComment(newsItem, newsComment, store, language);

            liquidObject.NewsComment = liquidNewsComment;
            await _mediator.EntityTokensAdded(newsComment, liquidNewsComment, liquidObject);
        }
Exemplo n.º 2
0
        public void AddNewsCommentTokens(string storeId, LiquidObject liquidObject, NewsComment newsComment)
        {
            var liquidNewsComment = new LiquidNewsComment(newsComment, storeId);

            liquidObject.NewsComment = liquidNewsComment;

            _eventPublisher.EntityTokensAdded(newsComment, liquidNewsComment, liquidObject);
        }