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 do this via the Routes.cs
routes.MapRoute(
name: "Controller",
url: "example-controller/{action}",
defaults: new {
controller = "ControllerName", action ="Index"
}
);
There is also another way, if you look at the answer of this question: How to achieve a dynamic controller and action method in ASP.NET MVC?