2010-11-20 2 views

答えて

5

確か:

public ActionResult Index() 
{ 
    return Content("No view involved here", "text/plain"); 
} 

か:

public ActionResult Index() 
{ 
    return File("test.pdf", "application/pdf"); 
} 

か:すべてのこれらの例で

public ActionResult Index() 
{ 
    return Json(new { foo = "bar" }); 
} 

、関与なしビューはありません。コントローラはHTTPハンドラとして機能します。

関連する問題