public static string GetName(this Controller controller)
        {
            if (controller == null)
            {
                throw new ArgumentNullException(nameof(controller));
            }

            return(RouteConfiguration.GetControllerName(controller.GetType()));
        }
 public static string AsControllerName(this Type controllerType)
 {
     return(RouteConfiguration.GetControllerName(controllerType));
 }
 public static string GetName <TOtherController>(this Controller controller)
     where TOtherController : Controller
 {
     return(RouteConfiguration.GetControllerName <TOtherController>());
 }