1
Nowadays, communication between applications, mobile and/or other devices is increasing.
The . net provides the Asp.net MVC and Asp.net WebAPI (to date today, stable version).
Commonly the Asp.net MVC returns Views, despite the WebApi also return is not correct. The most correct way to use an API would be data only (json)
So how to avoid duplication of Controllers for cases where I also need to communicate with mobile and aplicação web? Knowing that in both will have the methods CRUD(Create/Read/Update/Delete) implemented
I know that Single Page Application(SPA) is an option to reuse the same Controller Api, but in case we are not using SPA ?
Thank you Gypsy :D
– Rod