For application/json or application/xml I can use DataContract for a custom property name binding:
[HttpPost]
public string Method([FromBody]Model request)
{
}
[DataContract]
public class Model
{
[DataMember(Name="custom_name")]
public string CustomName { get; set; }
}
How can I use DataContract or something else for application/x-www-form-urlencoded?