public async void OnConfirmeAsDelivred() { string result = await App.Current.MainPage.DisplayPromptAsync("Order code", "You will get the order code from the clients when you give them the orders.", placeholder : "123456", maxLength : 6, keyboard : Keyboard.Numeric); if (result != null) { OrderFullInfo ofi = new OrderFullInfo(); ofi.id_order = Convert.ToInt32(OrderId); ofi.order_code = result.Trim(); JObject jRes = await myHttpClient.sendHttpPutAsyncJson(Constants.ApiPutDelivringComplete, ofi); await App.Current.MainPage.DisplayAlert((string)jRes["MessageTitele"], (string)jRes["Message"], "Ok"); if (!(bool)jRes["Error"]) { await Shell.Current.GoToAsync($".."); } } }