private static void AddAdvices(string relPartnerIln, string relDocumentType, string newOrderTrackingId, string relDocumentStandard, string orderPartnerIln) { if (relPartnerIln == orderPartnerIln) { Advices.AddRange(EdiService.Receive <DocumentReceivingAdvice>(relPartnerIln, relDocumentType, newOrderTrackingId, relDocumentStandard, "")); } }
private static void AddOrders(string relPartnerIln, string relDocumentType, string newOrderTrackingId, string relDocumentStandard, string orderPartnerIln) { if (relPartnerIln == orderPartnerIln) { var doc = EdiService.Receive <DocumentOrder>(relPartnerIln, relDocumentType, newOrderTrackingId, relDocumentStandard, "").First(); Orders.Add(doc); } }