How davidpuco/grupo4cinecartelera works
This is an ASP.NET Core MVC cinema-catalogue application: users can browse and manage films and genres, with film records linked to genres and validated by model annotations. Requests enter through the MVC route, reach a controller, and return a view; the controllers use an Entity Framework context for catalogue data. The sampled code shows SQL Server configured as the database provider. Views and migrations are present in the tree, but their implementation was not sampled, so view links reflect controller View() calls rather than inspected view behavior.
Main entry points: Program.cs MVC application · ApplicationDbContext.cs EF data context · HomeController.cs Home controller · PeliculasController.cs Film controller
Components 13
Web interaction
- MVC application
Program.cs - Home controller
Controllers/HomeController.cs - Home views
Views/Home - Error view model
Models/ErrorViewModel.cs
Catalogue management
- Film controller
Controllers/PeliculasController.cs - Genre controller
Controllers/GenerosController.cs - Film views
Views/Peliculas - Genre views
Views/Generos - Film model
Models/Pelicula.cs - Genre model
Models/Genero.cs
Data persistence
- EF data context
Data/ApplicationDbContext.cs - SQL Server database
Other components
- User / browser
Connections 14
- User / browser → MVC application: sends requests
- MVC application → Home controller: routes requests
Program.cs - Home controller → Home views: returns views
Controllers/HomeController.cs - Home controller → Error view model: creates error model
Controllers/HomeController.cs - MVC application → Film controller: routes requests
Program.cs - MVC application → Genre controller: routes requests
Program.cs - Film controller → Film views: returns views
Controllers/PeliculasController.cs - Genre controller → Genre views: returns views
Controllers/GenerosController.cs - Film controller → EF data context: queries and saves
Controllers/PeliculasController.cs - Genre controller → EF data context: queries and saves
Controllers/GenerosController.cs - EF data context → Film model: exposes entity set
Data/ApplicationDbContext.cs - EF data context → Genre model: exposes entity set
Data/ApplicationDbContext.cs - Film model → Genre model: references genre
Models/Pelicula.cs - MVC application → SQL Server database: configures SQL Server
Program.cs