Respuesta :

In general terms, a repository fundamentally works as a mediator between business logic layer and data access layer of the application. Sometimes, it would be troublesome to uncover the data access system specifically to business logic layer, it might bring about repetitive code forgetting to information for comparative substances or it might bring about a code that is difficult to test or get it. To defeat these sorts of issues, and to write an Interface driven and test driven code to get data, we use Repository Pattern.