Closed v-zmiycharov closed 7 years ago
@v-zmiycharov The C# compiler does not allow such call. This is why there is a special With
class. You can use it like this to specify no action arguments in the route values:
Url.Action<HomeController>(c => c.Test(With.No<int>()))
Let's say I have a method with one required parameter
If I want it to be post parameter I can't use the
Url.Action<HomeController>(c => c.Test())
because I have to pass "id".