0
Hello, I have a Webapi service and would like to get an answer specifically with a Date, but at the time I call this service and get the return of my Postasync what I see is just an httpResult saying it was OK.
call to the Webapi var result = await client.Postasync(URI, content);
Return of the method in the web api Return Request.Createresponse(Httpstatuscode.OK, dateThis);
Whatever I send in return, I don’t get ...
I tried to change the return type of the method to Datetime, or string but it didn’t work either. Currently he is an Httpresponsemessage m
But within the result of my call to the API I still didn’t find the date. Would the date be serialized in the Header property? How could I get the return? var result = await client.Postasync(URI, content);
– Vagner Santos
I complemented my answer with the method of reading the return in C#. See if it suits you.
– Rodolpho Sa