We can define parameters that has to be passed to Action Methods in MapRouteMethod,
routes.MapRoute( "Search", "{controller}/{name}/{id}", new{ controller = "Search",action ="Cusine", name = "",id=0} );
In the above example we define two parameters name and id to the action method Cusine.
To pass complex object we need to pass each property in the URL,this will get mapped to corresponding model in Action Method:
routes.MapRoute( "Search", "{controller}/{name}/{id}", new{ controller = "Search",action ="Cusine", name = "",id=0} ); ---Action Method public ActionResult Cusine(MyModel model) { return Content("Hello"+model.Name+model.id); } public class MyModel { public String Name { get; set; } public int id { get; set; } }