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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -