public async Task <IActionResult> Index()
        {
            var value = await _downstreamWebApi.GetForUserAsync <Item>("DownstreamB2CApi", string.Empty, authenticationScheme : "B2C");

            ViewData["ApiResult"] = value.name;
            return(View());
        }
示例#2
0
        // GET: TodoList
        public async Task <ActionResult> Index()
        {
            var value = await _downstreamWebApi.GetForUserAsync <IEnumerable <Todo> >(ServiceName, "api/todolist");

            return(View(value));
        }