Of course:
public ActionResult Index()
{
return Content("No view involved here", "text/plain");
}
or
public ActionResult Index()
{
return File("test.pdf", "application/pdf");
}
or
public ActionResult Index()
{
return Json(new { foo = "bar" });
}
In all of these examples, there is no representation. The controller acts as an HTTP handler.
source
share