I have the below C# code which is in a Web API being called from
Java Script file :
Does the below lines require correction ?
I used dynamic here since it I am not knowing the type of userData coming from the JS (the JS file below in the POST)
I did userData.ToString() as it requires it be be in
String to be able to parse it.
I did parsedUserData.pieId.ToString() since _pieRepository.GetPieById requires int and for converting to int first I have to convert to string.
Below is the JS code calling the above Web API controller:
Thanks