I am using nopCommerce. I am developing a plugin Project.
When I tried to redirect Admin page to plugin page, It gives error like
"PAGE NOT FOUND"
My Plugin page URL is
localhost:2276/Admin/Category/List
But it works properly for this URL
localhost:2276/Plugin/Category/List
RouteProvider.cs
public partial class RouteProvider : IRouteProvider
{
public void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute("Nop.Plugin.Category.ShopByCategory.Views.Category.List",
"Admin/Category/List",
new { controller = "Category", action = "List" },
new[] { "Nop.Plugin.Category.ShopByCategory.Controllers" });
}
public int Priority
{
get { return 0; }
}
}
I need to implement this by this URL localhost:2276/Admin/Category/List
.
Is there different way to implement this?