【发布时间】:2015-02-20 21:32:32
【问题描述】:
我的路由属性如下所示
[RouteArea("Settings")]
[RoutePrefix("Stores")]
public class SettingsMallStoresController : Controller
{
[HttpGet]
[Route("ExistingStores/{Permalink}")]
public ActionResult GetExistingStoreBranchesForSelectedHO(string permalink)
{
return View("ExistingStoreBranches");
}
}
我正在尝试使用 @html.action 从 View 调用此操作
@Html.Action("Settings/Stores/ExistingStores/{Permalink}",new{permalink=Somevalue})
无论如何都无法让它工作。请帮助
【问题讨论】:
标签: asp.net-mvc razor attributerouting