routes.MapRoute( name: "GiftPackageType", url: "gifttype/list", defaults: new { controller = "GiftPackageType", action = "List" } );
上面是我的路由代码
public ActionResult CreateGift() { return RedirectToAction("List", "gifttype");
}
我用RedirectToAction跳转到另一个controller,controllname用的是gifttype,竟然没用,按理说,会去匹配路由的啊
你应该指向一个Controller Name
return RedirectToAction("List", "GiftPackageType");