Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var authHeader = new Metadata {
                { "Authorization", "Bearer " + (await tokenManager.GetApiTokenAsync()).AccessToken }
            };
            var response = await client.RequestListAsync(new WindmillListRequest(), authHeader);

            return(View(response.Windmills.ToList()));
        }