C# 클래스 Decision.Common.NegotiatedResult

Returns a content negotiated result based on the Accept header. Minimal implementation that works with JSON and XML content, can also optionally return a view with HTML.
상속: System.Web.Mvc.ActionResult
파일 보기 프로젝트 열기: rabbal/Decision

공개 메소드들

메소드 설명
ExecuteResult ( ControllerContext context ) : void
NegotiatedResult ( object data ) : System

Pass in data to serialize

NegotiatedResult ( string viewName, object data ) : System

Pass in data and an optional view for HTML views

비공개 메소드들

메소드 설명
NegotiatedResult ( ) : System
TryApplyContentType ( string acceptType, ControllerContext context ) : bool

메소드 상세

ExecuteResult() 공개 메소드

public ExecuteResult ( ControllerContext context ) : void
context ControllerContext
리턴 void

NegotiatedResult() 공개 메소드

Pass in data to serialize
public NegotiatedResult ( object data ) : System
data object Data to serialize
리턴 System

NegotiatedResult() 공개 메소드

Pass in data and an optional view for HTML views
public NegotiatedResult ( string viewName, object data ) : System
viewName string
data object
리턴 System