public async Task GetManifests() { ShipManifestHeadersQueryContext context = new ShipManifestHeadersQueryContext { ShippingDate = DateTimeOffset.Now, InventLocationId = SettingsService.Instance.MyInfo.CurrentUser.SiteBranchCode }; var result = await Api.GetShipManifestHeaders(context); Assert.IsTrue(result?.Successful.GetValueOrDefault() ?? false); }
public async Task Load() { try { IsBusy = true; if (_selectedSortColumn == null) { SelectedSortColumn = _sortColumns[1]; } var context = new ShipManifestHeadersQueryContext { ShippingDate = DateTimeOffset.UtcNow.Date, InventLocationId = SettingsService.Instance.MyInfo.CurrentUser.UserBranchCode, Driver = _filterDriverName }; var result = await Api.GetShipManifestHeaders(context); if (!result.Successful.GetValueOrDefault()) { await Alert.DisplayApiCallError(result.ExceptionMessage, result.ValidationErrors); return; } Manifests = new ObservableCollection <ShipManifestHeader>(SortList(_selectedSortColumn, result.Data)); NoResults = !_manifests.Any(); } catch (Exception ex) { await Alert.DisplayError(ex); } finally { IsBusy = false; } }
public async Task <ApiResponseOfListOfShipManifestHeader> GetShipManifestHeaders(ShipManifestHeadersQueryContext context) { return(await AXClient.Instance.GetShipManifestHeadersAsync(context).ConfigureAwait(false)); }