LaVOZs

The World’s Largest Online Community for Developers

'; asp.net mvc - Return XML format ASP:NET MVC WebAPI - LavOzs.Com

When I test my api in Postman it works perfect, it return clear xml format

enter image description here

But when I run in Chrom I get something like this

enter image description here

I try to add in my WebApi Config file this line but doesn't make any sense

 config.Formatters.Remove(config.Formatters.JsonFormatter);

And in my controller I tried to add Route and HttpGet but doesn't make any changes

[HttpGet]
    [Route("api/Akontas")]
    public IQueryable<AKONTA> GetAKONTAS()
    {
        return db.AKONTAS;
    }

Can someone explain me what is the problem ?

Related
In MVC, how do I return a string result?
File Upload ASP.NET MVC 3.0
How do I get ASP.NET Web API to return JSON instead of XML using Chrome?
WebAPI not returning XML even with correct Accepts header
Why won't WebAPI return my POCOs as XML?
Returning PageResult from WebAPI not formatting as OData
Webapi v1 routes are not adhered to
How to convert a function into a WebApi function in MVC
How to Use MVC Controller and WebAPI Controller in same project
WebAPI is not returning error message with statuscode in Asp.net mvc