I have a situation where I need to pass two parameters to an action. I’ve been passing parameters to actions using the code below but I don’t see how I pass multiple parameters. How do I do this?
@Html.ActionLink("Add Visit", "Create", "Visit", new { id = Model.Id }, null)
BTW – ASP.NET MVC 4 RC
You should separate the parameters with comma, like this:
Check the MSDN documentation for the ActionLink method.
Hope it helps!