Example #1
0
 public void SetOrder(OrderWrapper order)
 {
     if (order != null)
     {
         OrderJsonData = JsonConvert.SerializeObject(order);
         _order        = order;
     }
 }
Example #2
0
 public OrderWrapper GetOrder()
 {
     if (_order == null && !string.IsNullOrEmpty(OrderJsonData))
     {
         _order = JsonConvert.DeserializeObject <OrderWrapper>(this.OrderJsonData);
     }
     return(_order);
 }