I am expecting a POST request with content type set to:
Content-Type: application/x-www-form-urlencoded
Request body looks like
It's an old post but maybe this could helps other people. Here is a solution with an AliasAttribute and the associated ModelBinder
It could be used like this :
[ModelBinder(typeof(AliasBinder))]
public class MyModel
{
[Alias("state")]
public string Status { get; set; }
}
Don't hesitate to comment my code :)
Every Idea / comment is welcome.