camel casing json results only for a particular api call

47 Views Asked by At

I am sending JSON result from my API in pascal case, but for only a particular web-api action I want to sent the response in camelCase.

I can do it globally using

 settings.ContractResolver = new CamelCasePropertyNamesContractResolver();

But how can i do that only for a particular web-api-2 controller-action?

0

There are 0 best solutions below