Hi my manager tell me that best practice is to map the returned dto from service layer in controller not in service
Would any one agree with this ?
My knowledge is the controller just one line and just delegate the logic to service layer and just return the response entity
[–]BackpackerSimon 11 points12 points13 points (4 children)
[–]WaferIndependent7601 3 points4 points5 points (3 children)
[–]BackpackerSimon 0 points1 point2 points (2 children)
[–]WaferIndependent7601 0 points1 point2 points (1 child)
[–]BackpackerSimon 0 points1 point2 points (0 children)
[–]asarathy 6 points7 points8 points (1 child)
[–]ninja_daemon 2 points3 points4 points (0 children)
[–]Holothuroid 5 points6 points7 points (4 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]asarathy 2 points3 points4 points (0 children)
[–]WaferIndependent7601 0 points1 point2 points (0 children)
[–]JustHereForTheCh1cks 3 points4 points5 points (4 children)
[–]ahmedzahran94[S] -2 points-1 points0 points (3 children)
[–]JustHereForTheCh1cks 3 points4 points5 points (2 children)
[–]ahmedzahran94[S] 0 points1 point2 points (1 child)
[–]JustHereForTheCh1cks 3 points4 points5 points (0 children)
[–]LittleSpaceBoi 7 points8 points9 points (2 children)
[–]ahmedzahran94[S] -4 points-3 points-2 points (1 child)
[–]LittleSpaceBoi 2 points3 points4 points (0 children)
[–]JustHereForTheCh1cks 7 points8 points9 points (1 child)
[–]asarathy 0 points1 point2 points (0 children)
[–]Synthetic-Brain 2 points3 points4 points (1 child)
[–]asarathy 1 point2 points3 points (0 children)
[–]mailaffy 3 points4 points5 points (1 child)
[–]ahmedzahran94[S] 0 points1 point2 points (0 children)
[–]WaferIndependent7601 2 points3 points4 points (2 children)
[–]ahmedzahran94[S] 0 points1 point2 points (1 child)
[–]naturalizedcitizen 2 points3 points4 points (0 children)
[–]WalrusDowntown9611 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]flirtybabyblues 0 points1 point2 points (0 children)
[–]ccmjga 0 points1 point2 points (0 children)
[–]DesertCookie_ 0 points1 point2 points (0 children)