Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question