Exemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            ViewBag.OrderData = await _serviceHelper.GetOrder();

            //ViewBag.ProductData = await _serviceHelper.GetProduct();
            return(View());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            var accessToken = await HttpContext.GetTokenAsync("access_token");

            ViewBag.OrderData = await _serviceHelper.GetOrder(accessToken);

            ViewBag.ProductData = await _serviceHelper.GetProduct(accessToken);

            return(View());
        }
Exemplo n.º 3
0
        public async Task <IActionResult> Index()
        {
            var accessToken = await HttpContext.GetTokenAsync(OpenIdConnectParameterNames.AccessToken);

            ViewBag.OrderData = await _serviceHelper.GetOrder(accessToken);

            ViewBag.ProductData = await _serviceHelper.GetProduct(accessToken);

            return(View());
        }