How to create an ActionLink to DinnerController for a given chefId?

Nov 6, 2011 at 11:13 AM


I am  just getting to grips with ProDinner (Looks very good), but I am having the following problem.....

I would like to create an ActionLink that routes the user to the DinnerController Search action, for a given search string and chefId.

I am using the following ActionLink, but this throws a Json error.

@Html.ActionLink("Dinner Chef","Search","Dinner", new { search =, chefId = o.Id }, null)

I guess I will need to create another DinnerController action (eg. SearchChef) that can be used by my ActionLink.

public ActionResult SearchChef(string search, int chefId)


       // Not sure what goes here?      


I'm not sure how to do this, so any help would be appreciated.