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
Post a Comment