Design patterns·The named ways it goes wrong
the service method's whole body is a call to the repository method with the same name and the same arguments.
Pass-through method
Also calledmiddle man, pass through layer, delegating layer
A method, or a whole layer, that does nothing but forward to the next one down, added because the architecture diagram said there should be a layer there. It is the shallow-module problem at its most literal: interface as wide as the thing it hides, and no complexity absorbed. A layer earns its place by doing something — a transaction, a translation, a policy — and if it does not, deleting it is a genuine improvement.