jeudi 21 décembre 2017

What is the difference between Service and Repository pattern?

So far I saw some projects using AspNet WebApi and MVC that use this patterns but I can't understand the difference. They look and do the same, they encapsulate all this data and abstract it so the controllers are just responsible to call this services or repository classes. My question is what is the difference? When to use one or other or both?

Aucun commentaire:

Enregistrer un commentaire