skip to Main Content

How do I get this call to httpClient.GetFromJsonAsync() to work?

I have two similar calls on a Blazor page: private async void SelectQuiz() { List<String>? ls = await httpClient.GetFromJsonAsync<List<String>>("api/BgQuizAnswer/GetBgQuizList"); String? txt = await httpClient.GetFromJsonAsync<String> ("api/BgQuizAnswer/GetHello"); The first call works fine while the second one fails. [HttpGet] [Route("GetBgQuizList")] public ActionResult<List<String>> GetBgQuizList()…

VIEW QUESTION
Back To Top
Search