In an Asp.Net MVC application, the MVVM is often used to carry out the communication with the Views. With the appearance of Web API and especially with Code First, does the MVVM still have to exist?
Many people say that it is not useful to use the MVVM since we do not have views.
My suggestion is that you should always use the MVVM because you must not export the Model of the application outside in order to avoid the possibility of hacking as the model reflects the structure of the database and therefore if we export it directly to the outside in a web api, we have exported the structure of our database and we increased the probability of hacking as the fields and tables are known to the outside.
This is why we must use the MVVM and not the Model which reflects the structure of the database.
Indeed, should we use the MVVM or the Model during the communication between the views and the controller in a web api?
AND how can it be hacked if we know the structure of the database?
thank you for your reply