Ejemplo n.º 1
0
 static void SaveHsCodes(List <HsCodeRequestDto> hsCodeRequestDtos, Client.Client client)
 {
     foreach (HsCodeRequestDto hsCodeRequestDto in hsCodeRequestDtos)
     {
         PostHsCode(hsCodeRequestDto, client).Wait();
         Console.WriteLine($"Saved {hsCodeRequestDto.HsCode} - {hsCodeRequestDto.Description}");
     }
 }
Ejemplo n.º 2
0
 static Task PostHsCode(HsCodeRequestDto hsCodeRequestDto, Client.Client client)
 {
     return(client.ApiHsCodePostAsync(hsCodeRequestDto));
 }