private async void ItemTappedCommandRecieverAsync(ManifestSearchResponseModel model) { try { Loader.StartLoading(); var manifest = await _moveService.GetManifestAsync(AppSettings.SessionId, model.ManifestId); if (manifest.Response.StatusCode == System.Net.HttpStatusCode.OK.ToString()) { Loader.StopLoading(); await _navigationService.NavigateAsync("ManifestDetailView", new NavigationParameters { { "manifest", manifest } }, animated : false); } } catch (Exception ex) { Crashes.TrackError(ex); } finally { Loader.StopLoading(); } }
internal async void AssingIntialValueAsync(SearchPalletResponseModel model, bool v) { try { var manifest = await _moveService.GetManifestAsync(AppSettings.SessionId, model.Barcode); Model = model; IsFromDashboard = v; ManifestId = model.Barcode; PartnerTypeName = model.OwnerName; StockLocation = model.LocationName; TargetLocation = model.LocationName; ShippingDate = model.BuildDate.Date; ItemCount = (int)model.BuildCount; Barcodes = new List <string> { model.Barcode }; } catch (Exception ex) { Crashes.TrackError(ex); } }