Пример #1
0
        //
        // GET: /Store/
        public async Task<ActionResult> Index()
        {
            IList<AESDataService.Store> model = new List<AESDataService.Store>();
            using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient())
            {
                model = await client.getAllStoresAsync();
            }

            return View(model);
        }
Пример #2
0
        //
        // GET: /Store/
        public async Task <ActionResult> Index()
        {
            IList <AESDataService.Store> model = new List <AESDataService.Store>();

            using (AESDataService.DataServiceClient client = new AESDataService.DataServiceClient())
            {
                model = await client.getAllStoresAsync();
            }

            return(View(model));
        }