2010-11-20 12 views

cevap

5

Emin:

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

ya:

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

veya: tüm bu örneklerde

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

işin içerisinde herhangi bir görüş var. Denetleyici bir HTTP işleyicisi olarak işlev görür.

İlgili konular