I am able to use the
[ActionName("My-Action-Name")]
public ActionResult MyActionName()
{
return View();
}
But I am facing a problem in changing the controller's Name. Is there some annotation available to make controller name hyphen (-) separated in MVC 4?
Somewhat like this:
[ControllerName("My-Controller-Name")]
public class MyControllerName : Controller
{
}