1
我有下面的代碼在我看來指定命名空間中Html.Action
<div>
@Html.Action("List", "Product")
</div>
的ProductController
上面提到的命名空間CoreNamespace
。我希望上面的代碼使用另一個命名空間CustomNamespace
,它具有相同名稱的控制器和動作(分別爲ProductController
和List
)。沒有涉及的區域。
我願做這樣的事情
<div>
@Html.Action("List", "Product", new { namespace = "CustomNamespace" })
</div>
這可能嗎?