Class NegotiatedResultExtensions

Extends Controller with Negotiated() ActionResult that does basic content negotiation based on the Accept header.

System.Object
  Westwind.Web.Mvc.NegotiatedResultExtensions
public static class NegotiatedResultExtensions : object

Class Members

MemberDescription

Negotiated

Return content-negotiated content of the data based on Accept header. Supports: application/json - using JSON.NET text/xml - Xml as XmlSerializer XML text/html - as text, or an optional View text/plain - as text

public static NegotiatedResult Negotiated(Controller controller,     object data)

public static NegotiatedResult Negotiated(Controller controller,     string viewName,     object data)

Requirements

Namespace: Westwind.Web.Mvc
Assembly: westwind.web.mvc.dll

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic