We have some PHP and Javascript apps that call into some ASP.NET MVC endpoints. Let's say we have this endpoint:
public ActionResult DoSomething(bool flag)
{
}
I want it to match the value for flag whether I pass in an integer of 1 or 0, or pass in a string of "true" or "false". What part of the framework do I need to implement in order to match that up?
A custom model binder.