Hi asp.net community members.
I have issue with deserialization of string that contains html: value = null when I post html.
Controller method:
// POST api/values
public string Post([FromBody]string value)
{
return value;
}
Xml for post:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"><div></div></string>
I have issue with deserialization of string that contains html: value = null when I post html.
Controller method:
// POST api/values
public string Post([FromBody]string value)
{
return value;
}
Xml for post:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"><div></div></string>