2
I need to save Statuscode and do a check. I have the following code:
using (HttpResponseMessage response = await httpClient.GetAsync(UrlApi)){}
When I do that: var teste2 = response.StatusCode;
the Satuscode returns BadRequest
but not saved in variable and I needed to do a check, ex: if(teste2.Equals("BadRequest")){//Faça algo}
Just for the record: I wrote this reply on 01, but I forgot to post.
– Jéf Bueno