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?
This is a workaround but it's sample in ultimate instance if you don't want modify or create a model binder.