Open
Description
This would allow MapControllerRoute to be used with nameof more seamlessly:
Today we have to do something like this:
endpoints.MapControllerRoute("name", "/{**path}", defaults: new
{
controller = nameof(HomeController).Replace("Controller", ""),
action = nameof(HomeController.Hello)
});
This would be better:
endpoints.MapControllerRoute("name", "/{**path}", defaults: new
{
controller = nameof(HomeController),
action = nameof(HomeController.Hello)
});