This controller:
public class TestController <T> : Controller
{
public string Index()
{
return "123";
}
}
This definition of the routes:
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new
{
controller = "Test<T>",
action = "Index",
id = ""
});
This is the error I get:
The IControllerFactory 'Yad2.Web.Mvc.UI.Infrastructure.NinjectControllerFactory' did not return a controller for the name 'Test'.