我有一个包含以下代码的视图:
<h2><%= Model.Company.CompanyName %></h2> <h3>Projects</h3> <ul> <% foreach (Project p in Model.Company.Projects) { %> <li><%= Html.ActionLink(p.ProjectName,"Details","Projects",new {id=p.ProjectID,companyId=p.CompanyID}) %></li> <% } %> </ul> <%= Html.ActionLink("Add Project","Create",new {id = Model.CompanyID}) %> <br /> <h3>Users</h3>
我有一个ProjectsController但是当我运行应用程序并单击Add Project Link时,它希望转到/ Company / Create而不是/ Projects / Create.我错过了什么吗?