Пример #1
0
        public void Apply(ProductCodeChanged e)
        {
            var product = GetById(e.Id);

            product.Code    = e.NewCode;
            product.Version = e.Version;
        }
Пример #2
0
 private void Apply(ProductCodeChanged e)
 {
     Code = e.NewCode;
 }
Пример #3
0
 public void AlterCode(ProductCodeChanged e, int version)
 {
     ApplyEvent(e, version);
 }