public static void RemoveByOrderLineId(OrderLineIdentifier id) { var aa = Instance.ToList().Find(x => x.id == id); if (aa == null) { return; } Instance.Remove(aa); }
//public ChargeLines GetChargeLines() //{ // //todo return ChargeLines.Instances.Select(x=>x.) // return ChargeLines.Instances; //} //Returns all the ChargeLines associated with this OrderLine public void RemoveChargeLine(OrderLineIdentifier id) { ChargeLines.RemoveByOrderLineId(id); } //Removes a ChargeLine from the OrderLine