How francoxe/test1 works
Purpose and runtime
LogeoV2 is an ASP.NET Core MVC application for user access, administration, and municipal-style complaint (“reclamo”) management. The runnable project is LogeoV2/LogeoV2.csproj; application startup and dependency/pipeline configuration begin at LogeoV2/Program.cs.
HTTP and presentation boundary
MVC controllers receive browser requests, coordinate services, and render Razor views. Main entry areas are access/authentication (LogeoV2/Controllers/AccesoController.cs), user/role administration (LogeoV2/Controllers/AdministracionController.cs), and complaint workflows (LogeoV2/Controllers/ReclamosController.cs). Notifications have a dedicated endpoint surface at LogeoV2/Controllers/NotificacionesController.cs.
Views are server-rendered Razor pages, with shared layout/navigation at LogeoV2/Views/Shared/_Layout.cshtml. Complaint UI includes personal, departmental, management, history, and metrics screens under LogeoV2/Views/Reclamos/.
Identity, authorization, and administration
Users, roles, permissions, and role-permission mappings form the authorization domain:
• LogeoV2/Models/Usuario.cs
• LogeoV2/Models/Rol.cs
• LogeoV2/Models/Permiso.cs
Service boundaries encapsulate this logic behind interfaces and implementations: LogeoV2/Services/IUsuarioService.cs / UsuarioService.cs, LogeoV2/Services/IRolService.cs / RolService.cs, and LogeoV2/Services/IPermisoService.cs / PermisoService.cs. Administration-oriented request/view shapes are separated from entities in LogeoV2/ViewModels/AdministracionViewModels.cs and LogeoV2/ViewModels/UsuarioVM.cs.
Complaint lifecycle
The central business flow is creation, assignment/management, status history, and reporting of complaints. The persistent domain includes:
• LogeoV2/Models/Reclamo.cs
• LogeoV2/Models/HistorialEstado.cs
• LogeoV2/Models/Categoria.cs
LogeoV2/Services/ReclamoService.cs, behind IReclamoService.cs, is the business boundary used by the complaint controller. Location and routing context are modeled with Departamento.cs and Barrio.cs. Controller-to-view data is purpose-built through ReclamoVM.cs, GestionReclamosVM.cs, HistorialReclamosVM.cs, and MetricasReclamosVM.cs, including pagination models.
Persistence and schema evolution
Entity Framework Core persistence is centralized in LogeoV2/Data/AppDBContext.cs, which connects controllers/services to the relational data store configured by LogeoV2/appsettings.json. The baseline schema and current EF model snapshot reside in LogeoV2/Migrations/20250118234610_Primera Migracion.cs and LogeoV2/Migrations/AppDBContextModelSnapshot.cs. Duplicate root-level folders appear to be older or parallel copies; the nested LogeoV2/ project tree is the authoritative runnable structure.
Cross-cutting operational services
Auditing, notifications, email, and exports are explicit service seams rather than controller concerns:
• Audit: LogeoV2/Services/IAuditoriaService.cs, AuditoriaService.cs, with LogeoV2/Models/LogAuditoria.cs
• Notifications: LogeoV2/Services/INotificacionService.cs, NotificacionService.cs, with LogeoV2/Models/Notificacion.cs
• External email integration: LogeoV2/Services/IEmailService.cs, EmailService.cs
• Reporting/export generation: LogeoV2/Services/IExportService.cs, ExportService.cs
Client assets and local storage
The application serves static CSS, JavaScript, Bootstrap, jQuery, and validation assets from LogeoV2/wwwroot/. LogeoV2/wwwroot/uploads/ indicates a filesystem boundary for uploaded content. No API client, queue, or separate frontend runtime is evidenced by the tree; external integration is principally email plus the configured relational database.
Main entry points: ReclamoService.cs Complaint service · ReclamosController.cs Complaints controller · AppDBContext.cs EF Core DbContext · Program.cs ASP.NET Core startup
Components 19
Application Host
- ASP.NET Core startup · Registers dependencies and configures the HTTP pipeline.
LogeoV2/Program.cs
MVC Presentation
- Access controller
LogeoV2/Controllers/AccesoController.cs - Administration controller
LogeoV2/Controllers/AdministracionController.cs - Complaints controller
LogeoV2/Controllers/ReclamosController.cs - Notifications controller
LogeoV2/Controllers/NotificacionesController.cs - Razor views and layout · Includes complaint workflow screens and shared navigation.
LogeoV2/Views/Shared/_Layout.cshtml - Administration view models
LogeoV2/ViewModels/AdministracionViewModels.cs - Complaint view models
LogeoV2/ViewModels/ReclamoVM.cs
Business Services
- User, role and permission services · Encapsulates user, role, permission, and mapping logic.
LogeoV2/Services/IUsuarioService.cs - Complaint service · Creates, assigns, manages, histories, and reports complaints.
LogeoV2/Services/ReclamoService.cs - Users, roles and permissions
LogeoV2/Models/Usuario.cs - Complaints and lifecycle · Includes categories, location routing, and status history.
LogeoV2/Models/Reclamo.cs
Persistence
- EF Core DbContext
LogeoV2/Data/AppDBContext.cs - Relational database
LogeoV2/appsettings.json - Upload storage
Operational Services
- Audit service
LogeoV2/Services/IAuditoriaService.cs - Notification service
LogeoV2/Services/INotificacionService.cs - Email service
LogeoV2/Services/IEmailService.cs - Export service
LogeoV2/Services/IExportService.cs
Connections 25
- ASP.NET Core startup → Access controller: routes requests to
- ASP.NET Core startup → Administration controller: routes requests to
- ASP.NET Core startup → Complaints controller: routes requests to
- ASP.NET Core startup → Notifications controller: routes requests to
- Access controller → User, role and permission services: authenticates via
- Administration controller → User, role and permission services: administers via
- Administration controller → Administration view models: binds and renders
- Complaints controller → Complaint service: drives lifecycle through
- Complaints controller → Complaint view models: binds and renders
- Notifications controller → Notification service: uses
- Access controller → Razor views and layout: renders
- Administration controller → Razor views and layout: renders
- Complaints controller → Razor views and layout: renders
- User, role and permission services → Users, roles and permissions: manages
- User, role and permission services → EF Core DbContext: persists through
- Complaint service → Complaints and lifecycle: manages
- Complaint service → EF Core DbContext: persists through
- Complaint service → Notification service: triggers
- Complaint service → Audit service: audits through
- Complaint service → Export service: exports through
- Notification service → Email service: sends through
- Notification service → EF Core DbContext: stores notifications in
- Audit service → EF Core DbContext: stores logs in
- EF Core DbContext → Relational database: connects to
- Complaints controller → Upload storage: uses uploaded content