'calling API data in Blazor WebAssembly in .NET 6.0
i have tblmenu model
public class TblMenus
{
public int menuID { get; set; }
public string menuTitle { get; set; }
public int menuINDEX { get; set; }
public bool menuAcitve { get; set; }
public int menuLevel { get; set; }
public int menuGroupID { get; set; }
public string menuURL { get; set; }
}'
i want to get data from using REST API but failed to get data i have used the following method
public async Task<IEnumerable<TblMenus>>Getoutput()
{
//https://liveexshield.com/apiBLZ/api/GETData/2,a,a
return await
httpClient.GetFromJsonAsync<TblMenus[]>"apiBLZ/api/GETData/2,a,a");
}
but when i use another api to get data same mehtod works fine but in this case my api is working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
