Why is the parameter always null when I call the below Post method with the below ajax?
public IEnumerable Post([FromBody]string value)
{
r
whenever we are calling web api action and which take [frombody] parameter then input parameter prefix with = for example
public string GetActiveEvents([FromBody] string XMLRequestString) {
}
to call above web api action
URI
User-Agent: Fiddler
Content-Type: application/x-www-form-urlencoded
Host: localhost:54702
Content-Length: 936
I hope this will give clear idea.