How dgoicochea26/dsw1_t1_goicocheamunozdavid works
This is an ASP.NET Core MVC library-catalog application. Users browse a paginated catalog, search by author, and create, edit, or delete books; book forms also load categories. Requests are handled by the Libro controller, which delegates business validation and normalization to a service, then persistence to a SQL Server repository. MVC views render the catalog and forms. Source excerpts establish these main calls; view rendering is visible in the controller, but view internals and the SQL schema script were not sampled.
Main entry points: LibroController.cs Libro controller · LibroService.cs Libro service · LibroRepository.cs Libro repository · Libro.cs Book model
Components 13
Web interface
- MVC routing
Program.cs - Libro controller
Controllers/LibroController.cs - Catalog views
Views/Libro - Shared views
Views/Shared
Catalog domain
- Libro service
Services/LibroService.cs - Service contract
Interfaces/ILibroService.cs - Book model
Models/Libro.cs - Category model
Models/Categoria.cs - Paged result
Models/ResultadoPaginado.cs
Persistence
- Repository contract
Interfaces/ILibroRepository.cs - Libro repository
Repositories/LibroRepository.cs
Other components
- Catalog user
- SQL Server
Connections 19
- Catalog user → MVC routing: sends requests
Program.cs - MVC routing → Libro controller: routes to
Program.cs - Libro controller → Libro service: calls catalog operations
Controllers/LibroController.cs - Libro controller → Catalog views: renders catalog views
Controllers/LibroController.cs - Libro controller → Shared views: renders shared layout
- Libro service → Libro repository: delegates persistence
Services/LibroService.cs - Libro repository → SQL Server: executes stored procedures
Repositories/LibroRepository.cs - Libro controller → Book model: accepts book models
Controllers/LibroController.cs - Libro controller → Paged result: returns paged results
Controllers/LibroController.cs - Libro controller → Category model: builds category choices
Controllers/LibroController.cs - Libro service → Book model: validates and normalizes
Services/LibroService.cs - Libro service → Paged result: adjusts page bounds
Services/LibroService.cs - Libro service → Category model: lists categories
Services/LibroService.cs - Libro repository → Book model: maps book records
Repositories/LibroRepository.cs - Libro repository → Category model: loads categories
Repositories/LibroRepository.cs - Libro repository → Paged result: builds page results
Repositories/LibroRepository.cs - Service contract → Repository contract: defines catalog operations
- Libro service → Service contract: implements
Services/LibroService.cs - Libro repository → Repository contract: implements
Repositories/LibroRepository.cs