public void Apply(ProductCodeChanged e) { var product = GetById(e.Id); product.Code = e.NewCode; product.Version = e.Version; }
private void Apply(ProductCodeChanged e) { Code = e.NewCode; }
public void AlterCode(ProductCodeChanged e, int version) { ApplyEvent(e, version); }