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