I want to generate an URL from my MVC application Razor view which will contain multiple parameter inputs like this: example.com/Index?id=1&bool=true
I already tried this: @Url.Action("Index?id=1&bool=true", "MyController")
which however does not work at all.
I would like to ask if there are any ideas how I can get an output like in the example above? Thank you in advance.