How matias-ruiz-decourt/entradasmvc works
EntradasMvc is a small ASP.NET Core MVC app for quoting ticket purchases. The default route opens the entry form; submitting it validates customer and quantity fields, then shows either validation errors or a quote with subtotal, discount, and total. A separate exception path serves an error page with a request ID. The excerpts establish controller, model, and routing behavior; view templates are present in the tree but were not sampled, so their rendering details are not inferred.
Main entry points: EntradasController.cs Entradas controller · HomeController.cs Home controller · Program.cs Web application · Cotizacion.cs Quote model
Components 8
Web routing
- Web application
Program.cs
Quote workflow
- Entradas controller
Controllers/EntradasController.cs - Quote model
Models/Cotizacion.cs - Quote form
Views/Entradas/Index.cshtml - Quote result
Views/Entradas/Resultado.cshtml
Error handling
- Home controller
Controllers/HomeController.cs - Error model
Models/ErrorViewModel.cs - Error page
Views/Shared/Error.cshtml
Connections 7
- Web application → Entradas controller: routes by default
Program.cs - Web application → Home controller: handles exceptions
Program.cs - Entradas controller → Quote model: creates and validates
Controllers/EntradasController.cs - Entradas controller → Quote form: returns form
Controllers/EntradasController.cs - Entradas controller → Quote result: returns result
Controllers/EntradasController.cs - Home controller → Error model: creates model
Controllers/HomeController.cs - Home controller → Error page: returns view
Controllers/HomeController.cs