private void InitializeStoresList()
        {
            var storesService = new StoresService(ConfigurationManager.AppSettings["ApiUrl"]);
            var stores        = storesService.GetStores();

            StoresDropdown.ItemsSource = stores;
        }
Пример #2
0
 public async Task <IActionResult> Index()
 {
     return(View(await _storesService.GetStores()));
 }
Пример #3
0
 public IEnumerable <Store> Get()
 {
     return(storesService.GetStores());
 }