Refactoring Request: Implement BaseController for CRUD Operations
Description
The current implementation of CRUD operations on Goods, Supplier, and Warehouse involves duplicated code across controllers, each utilizing the same RepositoryBase and inheriting from EntityBase. This refactoring request proposes creating a common BaseController to encapsulate shared functionality and eliminate code redundancy.
Affected Entities
Goods
Supplier
Warehouse
Maybe more
Suggested Changes
Implement a generic BaseController<T> that handles common CRUD operations for entities inheriting from EntityBase. This approach promotes code reuse and maintenance efficiency.
Additional Information
The refactoring should consider adherence to RESTful principles.
Ensure that the solution supports future extensions or customizations for specific entities.
Evaluate the impact on existing controllers and routes during the refactoring process.
Refactoring Request: Implement BaseController for CRUD Operations
Description
The current implementation of CRUD operations on Goods, Supplier, and Warehouse involves duplicated code across controllers, each utilizing the same
RepositoryBase
and inheriting fromEntityBase
. This refactoring request proposes creating a commonBaseController
to encapsulate shared functionality and eliminate code redundancy.Affected Entities
Suggested Changes
Implement a generic
BaseController<T>
that handles common CRUD operations for entities inheriting fromEntityBase
. This approach promotes code reuse and maintenance efficiency.Additional Information