public async Task Handle(Events.DescriptionUpdated e, IMessageHandlerContext ctx) { var product = await ctx.UoW().Get <Models.CatalogProductIndex>(e.ProductId).ConfigureAwait(false); product.Description = e.Description; await ctx.UoW().Update(e.ProductId, product).ConfigureAwait(false); }
public async Task Handle(Events.DescriptionUpdated e, IMessageHandlerContext ctx) { var location = await ctx.UoW().Get <Models.Location>(e.LocationId) .ConfigureAwait(false); location.Description = e.Description; await ctx.UoW().Update(e.LocationId, location).ConfigureAwait(false); }