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
Afficher le fichier Open project: basicdays/Guidelines

Méthodes publiques

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

Method Details

DynamicView() public méthode

public DynamicView ( object model ) : System.Collections
model object
Résultat System.Collections

ExecuteResult() public méthode

public ExecuteResult ( System.Web.Mvc.ControllerContext context ) : void
context System.Web.Mvc.ControllerContext
Résultat void