Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get kolonial product
public static async Task<KolonialProduct> GetKolonialProductAsync(HttpClient client, string barcode)
{
var httpResult = await client.GetAsync(ConfigurationManager.AppSettings["GetKolonialProductUri"] + "&barcode=" + barcode);
if (httpResult.IsSuccessStatusCode)
{
var json = await httpResult.Content.ReadAsStringAsync();
if (json != null)
return JsonConvert.DeserializeObject<KolonialProduct>(json);
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.