public async Task Handle(Events.DescriptionChanged e, IMessageHandlerContext ctx) { var campaign = await ctx.UoW().Get <Models.Campaign>(e.CampaignId) .ConfigureAwait(false); campaign.Description = e.Description; await ctx.UoW().Update(e.CampaignId, campaign).ConfigureAwait(false); }
private void Handle(Events.DescriptionChanged e) { this.Description = new ValueObjects.Description(e.Description); }
private void Handle(Events.DescriptionChanged e) { this.Description = e.Description; }