public async Task <IList <CountryDTO.Response> > TypeClientList(CountryDTO.Request src)
        {
            var result = await _httpClient.PostAsync($"Country/List", new StringContent(JsonConvert.SerializeObject(new CountryDTO.Request {
                lngid = 1
            }), Encoding.UTF8, "application/json"));

            var data = await result.Content.ReadAsStringAsync();

            return(JsonConvert.DeserializeObject <List <CountryDTO.Response> >(data));
        }
Beispiel #2
0
 public async Task <IList <CountryDTO.Response> > NamedClientsList(CountryDTO.Request src)
 {
     return(await _httpClient.PostAsync <IList <CountryDTO.Response> >(new HttpClientFactoryDTO.PostAsync {
         url = $"Country/List", namedclient = namedClients.FarmerExpert, request = src
     }));
 }
Beispiel #3
0
 public async Task <IList <CountryDTO.Response> > BaseList(CountryDTO.Request src)
 {
     return(await _httpClient.PostAsync <IList <CountryDTO.Response> >(new HttpClientFactoryDTO.PostAsync {
         url = $"{ConfigHelp.WebApiURL}Country/List", request = src
     }));
 }