How oscarg10101/bibliotech works
Biblioteca is an ASP.NET MVC library-circulation application. Visitors register or sign in, browse the catalog, and authenticated users can request loans; administrators manage books and process returns. Controllers coordinate these actions with the EF Core context, which persists users, catalog entities, and loans in SQL Server. The tree and excerpts support the main workflows and data model; other view details and any additional behavior in unsampled controller code are not inferred.
Main entry points: BibliotecaContext.cs EF Core context · UserController.cs User actions · AdminController.cs Admin actions · HomeController.cs Home routes
Components 21
Web entry and views
- Browser views
Features - Home routes
Features/Home/HomeController.cs - Admin views
Features/Admin - User views
Features/User
Accounts and access
- Cookie authentication
Program.cs - Admin actions
Features/Admin/AdminController.cs - User actions
Features/User/UserController.cs - Password hasher
Catalog and circulation
- Catalog management
Features/Admin/AdminController.cs - Loan administration
Features/Admin/AdminController.cs - Browse catalog
Features/User/UserController.cs - Loan requests
Features/User/UserController.cs
Domain and persistence
- EF Core context
Data/BibliotecaContext.cs - SQL Server
- Book entity
Models/Libro.cs - Loan entity
Models/Prestamos.cs - User entity
Models/Usuario.cs - Author entity
Models/Autor.cs - Category entity
Models/Categoria.cs - Role entity
Models/Rol.cs
Other components
- Visitor / user
Connections 26
- Visitor / user → Browser views: uses
- Browser views → Home routes: requests routes
- Home routes → Admin actions: redirects admins
- Home routes → User actions: redirects users
- Admin actions → Admin views: renders
- User actions → User views: renders
- Admin actions → EF Core context: queries and saves
- User actions → EF Core context: queries and saves
- Admin actions → Cookie authentication: signs in and out
- User actions → Cookie authentication: signs in and out
- User actions → Password hasher: hashes and verifies
- EF Core context → SQL Server: reads and writes
- EF Core context → Book entity: maps
- EF Core context → Loan entity: maps
- EF Core context → User entity: maps
- EF Core context → Author entity: maps
- EF Core context → Category entity: maps
- EF Core context → Role entity: maps
- Admin actions → Catalog management: dispatches
- Admin actions → Loan administration: dispatches
- User actions → Browse catalog: dispatches
- User actions → Loan requests: dispatches
- Catalog management → EF Core context: loads and updates
- Loan administration → EF Core context: lists and returns
- Browse catalog → EF Core context: loads books
- Loan requests → EF Core context: creates loan and marks unavailable