What is Repository Pattern
1.reduces repetitive code and separates the Data Access and Business Logic Used for resuability
2.Easy for further changes.
How to implement Repository Pattern
1.Create an interface.- Define all CRUD functions for
2.A class implement interface. – Implement all method of interface
3.Connect controllers to the repository.