public ChangeOrderStatusEvent(CustomerOrder customerOrder, OrderStatus oldVlue, OrderStatus newValue)
 {
     CustomerOrder  = customerOrder;
     OldOrderStatus = oldVlue;
     NewOrderStatus = newValue;
 }
Пример #2
0
 public ChangeOrderStatusCommand(CustomerOrder customerOrder, OrderStatus oldOrderStatus)
 {
     ChangeOrderStatus(oldOrderStatus, customerOrder.Id);
 }