I'm quite new to breeze. In our application, we have multiple repositories and one breeze API controller to handle the communication. However, since the application is large, the breeze controller is separated in to several partial classes, separating concerns. For example, we have related repositories to handle Location, Holiday and Service entities, and to make communications related to these entities we use one partial class controller. And several others for the other repositories.
//ClientLocationController.cs
public partial class ClientController : ApiController {
//handles location related communication
}
//ClientUserController.cs
public partial class ClientController : ApiController {
//handle user related communication
}
My question is, is it a bad practice use multiple controllers that extend the BreezeController? In the above example, instead of the partial class can we use two controllers as follows?
//ClientLocationController.cs
public class ClientLocationController : ApiController {
//handles location related communication
}
//ClientUserController.cs
public class ClientUserController : ApiController {
//handle user related communication
}
We use this type of design in MVC. Is it a bad practice to do the same in Breeze?