How tallerdelenguajes2/tl2-tp8-2025-cesar24-orellana works
MiWebApp is an ASP.NET Core MVC storefront-style application for maintaining products and customer budgets (presupuestos). Users reach controller actions through the default route; product and budget actions retrieve or mutate records through repositories, then return MVC views. Budget records can include product details, and the repositories use the SQLite database at MiWebApp/db/Tienda.db. The sampled code supports the CRUD and persistence relationships shown; the view files and database contents were not sampled, so their internal behavior is not inferred.
Main entry points: PresupuestosRepository.cs Budget repository · Program.cs MVC startup and routing · ProductosController.cs Product actions · ProductoRepository.cs Product repository
Components 13
Web application
- MVC startup and routing
MiWebApp/Program.cs - Home and error actions
MiWebApp/Controllers/HomeController.cs - Error view model
MiWebApp/Models/ErrorViewModel.cs - MVC views
MiWebApp/Views
Product catalog
- Product actions
MiWebApp/Controllers/ProductosController.cs - Product repository
MiWebApp/Repositorios/ProductoRepository.cs
Budget management
- Budget actions
MiWebApp/Controllers/PresupuestosController.cs - Budget repository
MiWebApp/Repositorios/PresupuestosRepository.cs
Domain and persistence
- Product model
MiWebApp/Models/Productos.cs - Budget model
MiWebApp/Models/Presupuestos.cs - Budget line model
MiWebApp/Models/PresupuestosDetalle.cs - SQLite database
MiWebApp/db/Tienda.db
Other components
- User
Connections 21
- User → MVC startup and routing: sends requests
MiWebApp/Program.cs - MVC startup and routing → Home and error actions: routes requests
MiWebApp/Program.cs - MVC startup and routing → Product actions: routes requests
MiWebApp/Program.cs - MVC startup and routing → Budget actions: routes requests
MiWebApp/Program.cs - Home and error actions → Error view model: creates model
MiWebApp/Controllers/HomeController.cs - Home and error actions → MVC views: returns views
MiWebApp/Controllers/HomeController.cs - Product actions → Product repository: calls repository
MiWebApp/Controllers/ProductosController.cs - Product actions → Product model: binds products
MiWebApp/Controllers/ProductosController.cs - Product actions → MVC views: returns views
MiWebApp/Controllers/ProductosController.cs - Product repository → Product model: reads and writes
MiWebApp/Repositorios/ProductoRepository.cs - Product repository → SQLite database: queries products
MiWebApp/Repositorios/ProductoRepository.cs - Product repository → SQLite database: deletes product lines
MiWebApp/Repositorios/ProductoRepository.cs - Budget actions → Budget repository: calls repository
MiWebApp/Controllers/PresupuestosController.cs - Budget actions → Budget model: binds budgets
MiWebApp/Controllers/PresupuestosController.cs - Budget actions → MVC views: returns views
MiWebApp/Controllers/PresupuestosController.cs - Budget repository → Budget model: reads and writes
MiWebApp/Repositorios/PresupuestosRepository.cs - Budget repository → Budget line model: builds line items
MiWebApp/Repositorios/PresupuestosRepository.cs - Budget repository → Product model: builds product details
MiWebApp/Repositorios/PresupuestosRepository.cs - Budget repository → SQLite database: queries budget tables
MiWebApp/Repositorios/PresupuestosRepository.cs - Budget model → Budget line model: calculates from lines
MiWebApp/Models/Presupuestos.cs - Budget line model → Product model: contains product
MiWebApp/Models/PresupuestosDetalle.cs