c# - Best way to transmit bool with attribute routing -


is there example of transmission bool parameter attribute routing?

for example can transform route

{controller}/{action}?param=true 

to

{controller}/{action}/param=true 

but still "dirty".

sorry dummy question (:

solution use 2 attribute this:

[route("valuesforfalse/{param=false}")] [route("valuesfortrue/{param=true}")] 

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -