2017-07-25 76 views
0

我有一个现有的ASP.NET Web API2项目。我想添加帮助页面。但我的控制器方法只显示在我的帮助页面上,即使我看到我的页面没有应用css。我可以在我的bin文件夹中看到文档xml fileWeb API2帮助页面不工作

enter image description here

回答

0

添加到项目

HomeController.cs

public class HomeController : Controller 
    { 
     public ActionResult Index() 
     { 
      ViewBag.Title = "Home Page"; 

      return View(); 
     } 
    }