I have the following url
http://localhost/user/MyUserName
How do I get "MyUserName" from that url? So I can use it at the server side to retrieve the information I want to present to the client side?
In Django it was very simply to archive that. But how do I do that in ASP.net MVC4?
EDIT
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);