public async Task <IActionResult> Index() { ViewBag.OrderData = await _serviceProvider.GetOrder(); ViewBag.ProductData = await _serviceProvider.GetProduct(); return(View()); }
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()); }
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()); }