private async Task Handle(ArticleUnavailableEvent @event) { var articleObject = await Repository.Get(@event.ArticleId); articleObject.Property("Available").Value = false; await Repository.Update(@event.ArticleId, articleObject); }
private void Apply(ArticleUnavailableEvent @event) { _available = false; }