This question is locked. New answers and comments are not allowed.
I've been looking through the forum and can't find any decent examples of where people are passing in parameters to the MVC action that's being called in the .Action() code of the menu item.
Let's say I have an action in my Home controller called About, that has a parameter of 'defaultSearch'... I'm trying to figure out how to pass a value to that defaultSearch parameter.
Currently in my menu in my view i have the following:
item.Add().Text("View My Work List").Action("About", "Home");
In the controller I have the following:
public ActionResult About(string defaultSearch = "")
What do I need to add to pass data to the parameter?
Let's say I have an action in my Home controller called About, that has a parameter of 'defaultSearch'... I'm trying to figure out how to pass a value to that defaultSearch parameter.
Currently in my menu in my view i have the following:
item.Add().Text("View My Work List").Action("About", "Home");
In the controller I have the following:
public ActionResult About(string defaultSearch = "")
What do I need to add to pass data to the parameter?