Пример #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}");
     }
 }
Пример #2
0
 static Task PostHsCode(HsCodeRequestDto hsCodeRequestDto, Client.Client client)
 {
     return(client.ApiHsCodePostAsync(hsCodeRequestDto));
 }