The network is essentially stateless, and MVC helps you go down to the metal, i.e. MVC is not trying to do something inactive, which is not, and this is basically the path to the old ASP: each request is a request and it should not know anything about any other requests that have been executed in the past.
I feel it’s easiest to go this route because it tends to stay clean, fast and helps you to keep up with best practices, such as sharing problems.
AJAX takes the next step: the idea of AJAX is that the simple “delete” operation can be implemented as such, i.e. you only need to authorize and execute one very small request at the save level. It. You do not even need to transfer the modified page to the user. A fairly simple machine-readable success / error indication via JSON.
If you start attracting many services for small AJAX requests, you really lose most of what is good for him.
I also suggest that you do not store a bunch of services in the base controller. Most likely, for most queries, you only need a small subset. It’s best to use only the services that you absolutely need.
source share