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); }
public void AddNewsCommentTokens(string storeId, LiquidObject liquidObject, NewsComment newsComment) { var liquidNewsComment = new LiquidNewsComment(newsComment, storeId); liquidObject.NewsComment = liquidNewsComment; _eventPublisher.EntityTokensAdded(newsComment, liquidNewsComment, liquidObject); }