If we have \"example_name\" we can change it in url using [ActionName(\"\")] So, i want to do this for controller name.
I can do t
you can specified in Routes.cs
routes.MapRoute(
name: "College",
url: "Student/{studentId}",
defaults: new { controller = "Student", action = "Details"}
);
We can define such a constraint as
routes.MapRoute(
name: "College",
url: "Student/{studentId}",
defaults: new { controller = "Student", action = "Details"},
constraints:new{id=@"\d+"}
);