I am 1 of 3 developers. The other 2 use Web API and angular to build web apps. I prefer ASP MVC with a repository and EF. The stated argument is that a service is more secure when accessing the database.
I think my way is just as secure if not more so. And I don't want to have to learn Angular. I could use Web API to do the data access, then use an MVC controller to call the data and render my razor views, but that seems a bit like double work. Or would the MVC controler just take the place of having to do all the data binding on the client side?
So;
- Is a Web service more secure than a repo in MVC with EF?
- Is there any problem with calling data from a Service with an MVC controller so I can avoid having to make tons of ajax calls and data binding on the client side /learn angular?
The stated argument is that a service is more secure when accessing the database.
-- That's the wrong argument. The correct argument is "which technology is more suitable for building our particular app," which encompasses far more strategic elements than merely security.