public async Task <ImmutableList <KeyValueModel> > GetInventories()
        {
            var response = await _client.GetInventoriesAsync();

            return(response.Data.Inventories
                   .Select(x => new KeyValueModel {
                Key = x.Id.ToString(), Value = x.Location
            })
                   .ToImmutableList());
        }
Example #2
0
        public async Task <List <IInventoryDto> > GetInventories()
        {
            var result = await _client.GetInventoriesAsync();

            return(result.Data.Inventories.ToList());
        }