dimanche 21 avril 2019

generate response HTTPResponseMessage to the given format

want to get the response of web api method as given below. Trying to use HttpResponseMessage but its not generating properly in a json format .

{ "Version": { "_Major": 1, "_Minor": 1, "_Build": -1, "_Revision": -1 }, "Content": { "Headers": [ { "Key": "Content-Type", "Value": [ "text/plain; charset=utf-8" ] } ] }, "StatusCode": 400, "ReasonPhrase": "", "Headers": [], "RequestMessage": null, "IsSuccessStatusCode": false }




Aucun commentaire:

Enregistrer un commentaire