Item always null in blazor

mokhtar soholi 41 Reputation points
2021-08-17T08:44:49.5+00:00

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?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,386 questions
{count} votes

1 answer

Sort by: Most helpful
  1. mokhtar soholi 41 Reputation points
    2021-08-18T12:31:53.637+00:00

    hi i solve it
    forgot set {get;set;} in model class thanks

    0 comments No comments