C
C#2y ago
İrşat

How to process IActionResult Ok(value) return in back end. [Answered]

string url = "Read/GetPost?postid=" + postid;
var apiResponse = await _httpClient.GetFromJsonAsync<>(url);
string url = "Read/GetPost?postid=" + postid;
var apiResponse = await _httpClient.GetFromJsonAsync<>(url);
What should I write inside the getfromjsonasync?
5 Replies
İrşat
İrşat2y ago
I might need to just put my model in there but isn't this a HttpResponse? How can I get status code and stuff
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
İrşat
İrşat2y ago
GetAsync worked just what I needed, thanks
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
✅ This post has been marked as answered!