Пример #1
0
 public ChangeProductPriceCommand(long id, decimal price, CommandMeta commandMeta)
     : base(commandMeta)
 {
     Id    = id;
     Price = price;
 }
Пример #2
0
 public ChangeProductNameCommand(long id, string name, CommandMeta commandMeta)
     : base(commandMeta)
 {
     Id   = id;
     Name = name;
 }
Пример #3
0
 public ChangeProductColorCommand(Guid id, string color, CommandMeta commandMeta, long?expectedVersion)
     : base(commandMeta, expectedVersion)
 {
     Id    = id;
     Color = color;
 }
Пример #4
0
 public AddCartCommand(CommandMeta commandMeta, long productId, short quantity, string userId) : base(commandMeta)
 {
     ProductId = productId;
     Quantity  = quantity;
     UserId    = userId;
 }
 public ChangeProductForBabyCommand(long id, bool forBaby, CommandMeta commandMeta)
     : base(commandMeta)
 {
     Id      = id;
     ForBaby = forBaby;
 }
Пример #6
0
 public ChangeProductForBabyCommand(Guid id, bool?forBaby, CommandMeta commandMeta, long?expectedVersion)
     : base(commandMeta, expectedVersion)
 {
     Id      = id;
     ForBaby = forBaby;
 }
Пример #7
0
 public ChangeProductTypeCommand(long id, string productType, CommandMeta commandMeta)
     : base(commandMeta)
 {
     Id          = id;
     ProductType = productType;
 }