w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Content Negotiation in ASP.NET Web API

You have 3 options:

  1. Create a class with a proper name and return the object instead of an anonymous type.
  2. Or if you want to return the anonymous instance, you should remove XML formatter, because anonymous types are not supported by XML Formatter

  3. Create your own formatter inheriting from MediaTypeFormatter or BufferedMediaTypeFormatter





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.