コード例 #1
0
        public void HandleEvent(EntityUpdated <NewsLetterSubscription> eventMessage)
        {
            _cacheManager.RemoveByPattern(Configurations.NEWSLETTER_SUBSCRIBERS_KEY);

            NewsLetterSubscriptionDto newsLetterSubscriptionDto = eventMessage.Entity.ToDto();

            var storeIds = new List <int>
            {
                newsLetterSubscriptionDto.StoreId
            };

            NotifyRegisteredWebHooks(newsLetterSubscriptionDto, WebHookNames.NewsLetterSubscriptionUpdate, storeIds);
        }
 public static NewsLetterSubscription ToEntity(this NewsLetterSubscriptionDto newsLetterSubscriptionDto)
 {
     return(newsLetterSubscriptionDto.MapTo <NewsLetterSubscriptionDto, NewsLetterSubscription>());
 }