Concept Flow - Repository pattern for data access
Start Application
Controller calls Repository
Repository handles Data Access
Repository queries Database
Database returns Data
Repository returns Data to Controller
Controller sends Response
The controller asks the repository for data. The repository talks to the database and returns data back. The controller then sends the response.