Transform Get from api in async : Good afternoon,
im trying transform my action get all users to async but when i run, show me per example 2 users but without name email etc, but they're there because show edit and delete.

This is my code;

            public IActionResult Index()
        {
            IEnumerable<User> users = null;

            using (var client = new HttpClient())
            {
                client.BaseAddress = new Uri("https://localhost:5000/api/");
                //HTTP GET
                var responseTask = client.GetAsync("users/");
                responseTask.Wait();

                var result = responseTask.Result;
                if (result.IsSuccessStatusCode)
                {
                    var readTask = result.Content.ReadAsAsync<IList<User>>();
                    readTask.Wait();

                    users = readTask.Result;
                }
                else //web api sent error response 
                {
                    //log response status here..

                    users = Enumerable.Empty<User>();

                    ModelState.AddModelError(string.Empty, "Server error. Please contact administrator.");
                }
            }
        return View(users);
        }


What i try to transform in async;

            public async Task<IActionResult> Index()
        {
            IEnumerable<User> users = null;

            using (var client = new HttpClient())
            {
                client.BaseAddress = new Uri("https://localhost:5000/api/");
                //HTTP GET
                var response = await client.GetAsync("users/");


                if (response.IsSuccessStatusCode)
                {
                    var resulString = await response.Content.ReadAsStreamAsync();
                    users = await JsonSerializer.DeserializeAsync<IEnumerable<User>>(resulString);
                }
                else
                {
                    ModelState.AddModelError(string.Empty, "Server error. Please contact administrator.");
                }
            }
            return View(users);
        }