/// <summary> /// Creates a copy of specified OrderShipment object /// </summary> /// <param name="orderShipmentId">Id of the OrderShipment object to create copy of</param> /// <param name="deepCopy">If <b>true</b> child objects are also copied</param> /// <returns>The created copy of specified OrderShipment object</returns> public static OrderShipment Copy(int orderShipmentId, bool deepCopy) { OrderShipment copy = OrderShipmentDataSource.Load(orderShipmentId, false); if (deepCopy) { //THROW NEW throw new ArgumentException("Deep copy not implemented for this object."); } copy.OrderShipmentId = 0; return(copy); }
public static OrderShipment Load(Int32 orderShipmentId) { return(OrderShipmentDataSource.Load(orderShipmentId, true)); }