public void Apply(ChangedProductBrandEvent e) { Brand = e.Brand; }
public async Task HandleAsync(ChangedProductBrandEvent @event, CancellationToken cancellationToken = default) { await _repo.UpdateAsync(@event.AggregateId, x => x.Brand = @event.Brand, cancellationToken); }