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

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

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

            return(View(model));
        }