How to map a 1 or 0 in an ASP.Net MVC route segment into a Boolean action method input parameter

后端 未结 4 1676
无人共我
无人共我 2021-01-12 01:25

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)
         


        
4条回答
  •  轮回少年
    2021-01-12 02:05

    What part of the framework do I need to implement in order to match that up?

    A custom model binder.

提交回复
热议问题