C#C
C#4y ago
bookuha

❔ Entity logic splitting

Imagine you have two entites
User and Group
and two services : userService, GroupService

In which one of there would you put a method "GetUsersByGroupId"

Also, is it better to group controllers by what they return?
Like, having endpoints for different resource in the same controller:
unknown.png
Was this page helpful?