problem description
should the user create an order in UserController or OrderController?
//
public void UserController{
}
//
public void OrderController{
}
for example, adding users to a group, should it be placed in GroupController or UserController?
//UserController
public void UserController{
}
//GroupController
public void GroupController{
}
personally, from the point of view of code implementation, no matter which controller is placed, it can be implemented. But from a business point of view, there should be a basic principle of division . I would like to ask you usually develop according to what principles to divide ?
Thank you!