/// <summary> /// Add custom attribute to order. /// </summary> /// <param name="order">The order to add custom attribute to</param> /// <param name="item">The custom attribute to add</param> protected void Add(PublicOrder order, PublicOrderCustomData customData) { var customAttributes = new List <PublicOrderCustomData>(order.CustomData); customAttributes.Add(customData); order.CustomData = customAttributes.ToArray(); }
/// <summary> /// Helper to add custom attribute to order. /// </summary> /// <param name="order">The order to add custom attribute to</param> /// <param name="customData">The custom attribute to add.</param> protected void Add(PublicOrder order, PublicOrderCustomData customData) { var customAttributes = new List<PublicOrderCustomData>(order.CustomData); customAttributes.Add(customData); order.CustomData = customAttributes.ToArray(); }