我创建了一个自定义支付插件,我想重定向到该插件控制器Nop.web View 的提交按钮上的操作
在实现IPlugin接口的类中,将定义两个路由。例如
public void GetConfigurationRoute(out string actionName, out string controllerName, out RouteValueDictionary routeValues)
{
actionName = "Configure";
controllerName = "SomePlugin";
routeValues = new RouteValueDictionary { { "Namespaces", "Nop.Plugin.Payments.SomePlugin.Controllers" }, { "area", null } };
}
您可以使用以下方法重定向到这些操作。
public ActionResult RedirectToPlugin()
{
return RedirectToAction("ConfigureMethod", "Payment", new { area = "Admin", systemName = "Payments.SomePlugin" });
}