How to process IActionResult Ok(value) return in back end. [Answered]
What should I write inside the getfromjsonasync?
5 Replies
I might need to just put my model in there but isn't this a HttpResponse? How can I get status code and stuff
You are correct, the URL is what you need. You can also provide a response type (i.e. the type that will be returned from the method-call).
However, this is an extension method that deserializes the response into the type you proivide, thus not returning the HttpResponse.
Use the regular .GetAsync() if you need to get the HttpResponse object instead of the deserialized http response.
GetAsync worked
just what I needed, thanks
No problem.
✅ This post has been marked as answered!