public void DisplayAlert(PriceDTO item, Context context) { PriceDTO price = new PriceDTO(); using (var client = new HttpClient()) { Task <string> result = client.GetStringAsync(Utils.baseUrl + "Price/GetBestPrice?name=" + item.product.Name); price = JsonConvert.DeserializeObject <PriceDTO>(result.Result); } Android.Support.V7.App.AlertDialog.Builder alertdialogbuilder = new Android.Support.V7.App.AlertDialog.Builder(context); alertdialogbuilder.SetCancelable(false) .SetPositiveButton("OK", delegate { alertdialogbuilder.Dispose(); }); Android.Support.V7.App.AlertDialog alertDialogAndroid = alertdialogbuilder.Create(); alertDialogAndroid.SetTitle(price.ExchangedValue + " " + price.ToCurrency); alertDialogAndroid.SetMessage(price.Shop); alertDialogAndroid.Show(); }