我有一个可以访问的视图,http://localhost:49467/About/
它被称为index.cshtml
.
我有另一个视图,其中可以访问并被http://localhost:49467/Food/
称为index2.cshtml
我想在index.cshtml
页面内放置一个链接,以便我可以访问index2.cshtml
。我该怎么做。我的代码;
@Html.ActionLink("link", "Food/index" )
但我最终在 URLhttp://localhost:49467/About/Food/
中找不到该页面。我想要做的就是导航到http://localhost:49467/Food/
。我该如何纠正这个?