Esempio n. 1
0
        private async Task ViewDataAddressesAndStores()
        {
            IList <Address> addresses = await addressBusiness.GetAddresses();

            IList <Store> stores = await storeBusiness.getAllStores();

            IList <Country> countries = await countryBusiness.GetCountries();

            ViewData["idAddress"] = SelectListHelper.SelectListAddresses(addresses);
            ViewData["idStore"]   = SelectListHelper.SelectListStores(stores);
            ViewData["idCountry"] = SelectListHelper.SelectListCountries(countries);
        }
Esempio n. 2
0
        // GET: Store
        public async Task <IActionResult> Index()
        {
            IList <Store> stores = await storeBusiness.getAllStores();

            return(View(stores));
        }