I have a method like below
public IHttpActionResult([FormUri] string name)
var response =_servcie.GetDetails(name);
The application has the JSON configuration at the config level.
could you please assist how to return xml output only for this action method only so that i can not change the configuration media formatted at global level
What I have tried:
I have tried to return Content(ok,object,"application/xml")
but not getting output as xml