private async void ConfirmationCommandHandler() { if (!string.IsNullOrEmpty(Model.Reading)) { await _popupNavigation.PushAsync(new LoadingPopupPage()); var getBillOfLadingInformationsByBarCode = await _billOfLadingService.GetBillOfLadingInformationsByBarCode(Model.Reading); await _popupNavigation.PopAllAsync(); if (getBillOfLadingInformationsByBarCode.Response?.BillOfLadingInformations != null && getBillOfLadingInformationsByBarCode.Response.BillOfLadingInformations.Any()) { var informations = getBillOfLadingInformationsByBarCode.Response.BillOfLadingInformations.ToArray(); Model.Cte = informations[0].ToString() + "-" + informations[1].ToString(); Model.Origim = informations[2].ToString(); Model.Destination = informations[3].ToString(); Model.Invoice = informations[4].ToString(); Model.Vol = informations[5].ToString(); Model.WeightVol = informations[6].ToString() + " kg"; Model.TotalVolume = informations[7].ToString(); Model.TotalBaseWeight = informations[8].ToString() + " kg"; Model.TotalRealWeight = informations[9].ToString() + " kg"; Model.TotalWeightCubicated = informations[10].ToString() + " kg"; Model.ReadingIsReadOnly = true; } else { Model.Reading = String.Empty; await _notificationService.NotifyAsync("Código de barras não encontrado.", SoundEnum.Erros); Model.ReadingFocus(); } } else { await _notificationService.NotifyAsync("Realize a leitura do código de barras.", SoundEnum.Alert); } }