How do I receive JSON data on my WebAPI backend in C#?
I have the following JSON sent from my JavaScript frontend.
{ \"User_Id\": 1, \"T
The Content-Type of your request should be "application/json"
Content-Type
"application/json"
If you post your json in a body of the request than change a method signature to
[HttpPost] public bool AddOrder([FromBody] PurchaseOrder order) { }