In order to reduce the number of classes and respect the MVC pattern, we should move data access and business logic methods to the the already existing models.
Each model should implement a service interface and related controllers should have this interface injected instead of the model directly.
In order to reduce the number of classes and respect the MVC pattern, we should move data access and business logic methods to the the already existing models.
Each model should implement a service interface and related controllers should have this interface injected instead of the model directly.
Models to modify:
New models should follow this structure as well.