public void DiscountAddedToDisplayOrder(DisplayOrder order, DisplayDiscount discount)
 {
     DiscountAddedToDisplayOrder doda = new DiscountAddedToDisplayOrder();
     doda.DisplayOrder = order;
     doda.DisplayDiscount = discount;
     Send("/DiscountAddedToDisplayOrder", doda);
 }
 public void DiscountAddedToDisplayOrder(DisplayOrder order, DisplayDiscount discount)
 {
     if (websocket != null)
     {
         DiscountAddedToDisplayOrderRequestMessage message = new DiscountAddedToDisplayOrderRequestMessage();
         DiscountAddedToDisplayOrder payload = new DiscountAddedToDisplayOrder();
         payload.DisplayDiscount = discount;
         payload.DisplayOrder = order;
         message.payload = payload;
         websocket.Send(JsonUtils.serialize(message));
     }
 }