Creating ASP.NET MVC Negotiated Content Results - Rick Strahl

added by Paul Wheeler
5/22/2014 2:16:31 PM

5 Kicks, 118 Views

Content negotiation is one of the key features of Web API even though it’s such a relatively simple thing. But it’s also something that’s missing in MVC and once you get used to automatically having your content returned based on Accept headers it’s hard to go back to manually having to create separate methods for different output types as you’ve had to with Microsoft server technologies all along (yes, yes I know other frameworks – including my own – have done this for years but for in the box features this is relatively new from Web API).