Ejemplo n.º 1
0
        public async Task <IEnumerable <Product> > GetProductsAsync(int id)
        {
            var store = StoresTable.Platforms.Where(x => x.Id == id).FirstOrDefault();

            if (store == null)
            {
                throw new KeyNotFoundException("StoreId not found in StoresTable");
            }
            _platformProvider = _platformProviderResolver(store.Name);
            return(await _platformProvider.GetProductsAsync(id));
        }