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)
This is a workaround but it's sample in ultimate instance if you don't want modify or create a model binder.
public ActionResult DoSomething(string flag) { if(flag.Equals("true") || flag.Equals(1)) { //condition true, any else false } }