Using a strongly typed ActionLink when the action method doesn't take a primitive type
问题 Does anyone know how I could go about doing something like : Html.ActionLink(c => c.SomeAction(new MessageObject { Id = 1 } )) This should output a link with the url of "/Controller/SomeAction/1", pointing at an ActionMethod along the lines of: public Controller : Controller { public ActionResult SomeMethod(MessageObject message) { // do something with the message return View(); } } I've written something similar for generating forms, but that doens't need to include the Id value on the end