Пример #1
0
        public void Handle(NewsUnpublishedEvent @event)
        {
            var tmpNews = News.FirstOrDefault(news => news.Id == @event.NewsId);

            if (tmpNews != null)
                tmpNews.Status = "Created";
        }
Пример #2
0
 public void updateFrom(NewsUnpublishedEvent @event)
 {
     _status = enumNewsStatus.Created;
 }