C# Class MvcJson.Net.Controllers.HomeController

Inheritance: Controller
Exibir arquivo Open project: dax70/MvcJson.Net

Public Methods

Method Description
Index ( bool preferred = false ) : System.Web.Mvc.ActionResult

Protected Methods

Method Description
Json ( object data, string contentType, Encoding contentEncoding, JsonRequestBehavior behavior ) : System.Web.Mvc.JsonResult

Creates a System.Web.Mvc.JsonResult object that serializes the specified object to JavaScript Object Notation (JSON).

Method Details

Index() public method

public Index ( bool preferred = false ) : System.Web.Mvc.ActionResult
preferred bool
return System.Web.Mvc.ActionResult

Json() protected method

Creates a System.Web.Mvc.JsonResult object that serializes the specified object to JavaScript Object Notation (JSON).
protected Json ( object data, string contentType, Encoding contentEncoding, JsonRequestBehavior behavior ) : System.Web.Mvc.JsonResult
data object The JavaScript object graph to serialize.
contentType string The content type (MIME type).
contentEncoding System.Text.Encoding The content encoding.
behavior JsonRequestBehavior The JSON request behavior
return System.Web.Mvc.JsonResult