1

Topic: MVC ContentType

To all greetings Prompt, and where in standard application MVC it is possible to understand with what a content  the request came? The causing side receives an error {httpError, {"HTTP/1.1", 415, "Unsupported Media Type"}, []} In  the formatter I added SupportedMediaTypes. Add (new MediaTypeHeaderValue ("text/xml")); SupportedMediaTypes. Add (new MediaTypeHeaderValue ("application/json")); and  I refuse to all to another content . It would be desirable to fasten logic to the analysis incorrectly coming content . How it to organize?

2

Re: MVC ContentType

Hello, - Cheese - you wrote: a C> and  I refuse to all to another content . It would be desirable to fasten logic to the analysis incorrectly coming content . A C> As it to organize?  the IContentNegotiatior Content Negotiation in ASP.NET Web API... <<RSDN@Home 1.3.108 alpha 5 rev. 56>>