C# Class Guidelines.WebUI.ActionResults.DynamicView

Naively dynamically changes output based on content-type request header. Only necessary until ASP.net MVC 4, as this will be obsolete by that point.
Protects against JSON hijacking, see http://haacked.com/archive/2009/06/25/json-hijacking.aspx for more info.
Inheritance: System.Web.Mvc.ActionResult
显示文件 Open project: basicdays/Guidelines

Public Methods

Method Description
DynamicView ( object model ) : System.Collections
ExecuteResult ( System.Web.Mvc.ControllerContext context ) : void

Method Details

DynamicView() public method

public DynamicView ( object model ) : System.Collections
model object
return System.Collections

ExecuteResult() public method

public ExecuteResult ( System.Web.Mvc.ControllerContext context ) : void
context System.Web.Mvc.ControllerContext
return void