Hi it's been a while since I've developed a Nopcommerce plugin and I can't find any way to register a route and reach it. I spend over 10hours looking online trying all sorts of examples just to register a simpel route to a simple controller. Can some one please point me out what the @#|?/*! I'm doing wrong?
I would like to reach an custom admin controller with this path
localhost:port/Admin/TableConfigurator/DeckSettingsList
The controllers name is TCAdminController. The action is DeckSettingsList
A link to the whole project can be found here: https://ufile.io/jhykf
Hopefully someone can help me out.
This is my route provider:
namespace Nop.Plugin.Misc.TableConfigurator.Infrastructure
{
public class RouteProvider : IRouteProvider
{
public int Priority
{
get { return 1; }
}
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
"Nop.Plugin.Misc.TableConfigurator",
"Admin/TableConfigurator/{action}",
new { controller = "TCAdminController", action = "DeckSettingsList" },
new[] { "Nop.Plugin.Misc.TableConfigurator.Controllers" }
).DataTokens.Add("Area", "Admin");
ViewEngines.Engines.Insert(0, new ViewEngine());
}
}
}