A
A
artshelom2020-01-04 01:09:50
ASP.NET
artshelom, 2020-01-04 01:09:50

What's the difference between APIController and Controller?

What is the difference between APIController and Controller, as I understand it, ApiController cannot have a View, or is there a way to create a View so that either View or Json or xml is returned depending on the Header?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-01-04
@firedragon

Everything is described in the documentation
https://docs.microsoft.com/en-us/dotnet/api/system...
A more extended class, another question is why you are in one place.
However, there is a special section on serializers, you can even give in text form
https://docs.microsoft.com/ru-ru/aspnet/web-api/ov...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question