2017-07-25 73 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(); 
     } 
    }