I have an typical MVC application that has the following Action:
public ActionResult MyAction(string param1)
When I call this action this way:
http://domain/MyController/MyAction?param1=dasas
I receive param1 as supposed: "dasas"
But in MVC the idea is to pass params as following right?
http://domain/MyController/MyAction/dasas
This way it doesn't work and I am wondering why! Any idea?
UPDATE: Here is my route:
routes.MapRoute(name: "Default", url: "{controller}/{action}/{id}", defaults:
new {
controller = MVC.RegistrationAuthority.Name,
action = MVC.RegistrationAuthority.ActionNames.Landing,
id = UrlParameter.Optional
});