Example #1
0
        public async Task <ImmutableList <KeyValueModel> > GetStores()
        {
            var response = await _client.GetStoresAsync();

            return(response.Data.Stores
                   .Select(x => new KeyValueModel {
                Key = x.Id.ToString(), Value = x.Location
            })
                   .ToImmutableList());
        }