hi i solve it
forgot set {get;set;} in model class thanks
Item always null in blazor
mokhtar soholi
41
Reputation points
Hi everyone i create blazor application.
this application get data from url but one of this url always is null
this is my code :
var rev =await Http.GetFromJsonAsync<Response>($"https://pwa.brandebash.ir/api/cultapi/reverse?lon=51.811177&lat=28.043600");
but when app is running i use inspect element and network tab can see this url have item but rev always is null why did happend?
1 answer
Sort by: Most helpful
-
mokhtar soholi 41 Reputation points
2021-08-18T12:31:53.637+00:00