How muniendavid-oss/staybnb works
Staybnb is an ASP.NET Core MVC lodging marketplace. Guests browse active listings, request bookings, and complete document-based check-in; prospective hosts apply, then manage listings and booking reviews after approval. Admins review applications, verify documents, manage users, and inspect activity logs. Messaging and notifications support communication across these workflows. The sampled controllers show booking, host-application, and administration behavior; other documented capabilities are included where the README supports them. Source-index references provide evidence for several unsampled connections.
Main entry points: ApplicationDbContext.cs EF data context · ActivityLogger.cs Activity logging · BookingsController.cs Booking workflow · AdminController.cs Admin operations
Components 23
Identity and access
- Accounts
Controllers/AccountController.cs - Role seeding
Data/RoleSeeder.cs - Inbox and alerts
Controllers/CommunicationController.cs
Listings and bookings
- Property search
Controllers/PropertiesController.cs - Booking workflow
Controllers/BookingsController.cs
Host operations
- Host applications
Controllers/HostApplicationsController.cs - Check-in instructions
Models/CheckInProcess.cs
Administration
- Admin operations
Controllers/AdminController.cs - Activity logging
Services/ActivityLogger.cs
Persistence and records
- Property records
Models/Property.cs - Property images
Models/PropertyImage.cs - Booking records
Models/Booking.cs - Application records
Models/HostApplication.cs - Guest documents
Models/GuestDocument.cs - Messages
Models/Message.cs - Notifications
Models/Notification.cs - Activity records
Models/ActivityLog.cs - User records
Models/ApplicationUser.cs - EF data context
Data/ApplicationDbContext.cs
Other components
- Guest
- Host
- Admin
- SQL Server
Connections 36
- Guest → Accounts: registers or signs in
README.md - Accounts → Activity logging: logs activity
Controllers/AccountController.cs - Role seeding → User records: seeds roles
Data/RoleSeeder.cs - Guest → Property search: searches listings
README.md - Property search → EF data context: queries listings
Controllers/PropertiesController.cs - Guest → Booking workflow: requests stay
Controllers/BookingsController.cs - Booking workflow → EF data context: reads and writes
Controllers/BookingsController.cs - Booking workflow → Activity logging: logs activity
Controllers/BookingsController.cs - Booking workflow → Notifications: creates alerts
Controllers/BookingsController.cs - Host → Host applications: applies and manages
Controllers/HostApplicationsController.cs - Host applications → EF data context: reads and writes
Controllers/HostApplicationsController.cs - Host applications → Activity logging: logs activity
Controllers/HostApplicationsController.cs - Admin → Admin operations: reviews and administers
README.md - Admin operations → EF data context: reads and writes
Controllers/AdminController.cs - Admin operations → Activity logging: logs activity
Controllers/AdminController.cs - Admin operations → User records: changes roles
Controllers/AdminController.cs - Host → Check-in instructions: sets instructions
- Guest → Booking workflow: uploads documents
Controllers/BookingsController.cs - Host → Host applications: verifies documents
Controllers/HostApplicationsController.cs - Booking workflow → EF data context: checks verification
Controllers/BookingsController.cs - Guest → Inbox and alerts: messages and reads alerts
README.md - Inbox and alerts → EF data context: reads and writes
Controllers/CommunicationController.cs - Inbox and alerts → Activity logging: logs activity
Controllers/CommunicationController.cs - EF data context → SQL Server: persists records
README.md - EF data context → Property records: maps entity
Data/ApplicationDbContext.cs - EF data context → Property images: maps entity
Data/ApplicationDbContext.cs - EF data context → Booking records: maps entity
Data/ApplicationDbContext.cs - EF data context → Application records: maps entity
Data/ApplicationDbContext.cs - EF data context → Guest documents: maps entity
Data/ApplicationDbContext.cs - EF data context → Check-in instructions: maps entity
Data/ApplicationDbContext.cs - EF data context → Messages: maps entity
Data/ApplicationDbContext.cs - EF data context → Notifications: maps entity
Data/ApplicationDbContext.cs - EF data context → Activity records: maps entity
Data/ApplicationDbContext.cs - EF data context → User records: maps identity
Data/ApplicationDbContext.cs - Activity logging → EF data context: writes log entries
Services/ActivityLogger.cs - Activity logging → Activity records: creates records
Services/ActivityLogger.cs