How nikicha2209/notehub works
NoteHub is an ASP.NET MVC CRUD application for personal notes. A browser request enters through MVC routing and the NoteController, which validates submitted view models and delegates note operations to NoteService. The service maps between view models and Note entities, while NotesDbContext persists them through Entity Framework to SQL Server. The README documents the full create, list, edit, delete, and detail experience; exact view-to-action wiring is supported by MVC conventions, but individual Razor view contents were not sampled.
Main entry points: NoteService.cs Note service · NoteController.cs Note actions · NoteViewModel.cs Note view model · NotesDbContext.cs Notes context
Components 12
MVC Web
- MVC routing
NoteHub.Web/Program.cs - Note actions
NoteHub.Web/Controllers/NoteController.cs - CRUD views
NoteHub.Web/Views/Note - Note view model
NoteHub.Web.ViewModels/NoteViewModel.cs
Note Domain
- Note service
NoteHub.Services.Data/NoteService.cs - Service contract
NoteHub.Services.Data/Interfaces/INoteService.cs - Validation rules
NoteHub.Common/EntityValidationConstants.cs - Validation messages
NoteHub.Common/EntityValidationMessages.cs - Note entity
NoteHub.Data.Models/Note.cs
Persistence
- Notes context
NoteHub.Data/NotesDbContext.cs - SQL Server
Other components
- User browser
Connections 14
- User browser → MVC routing: sends request
README.md - MVC routing → Note actions: routes requests
NoteHub.Web/Program.cs - Note actions → Service contract: invokes contract
NoteHub.Web/Controllers/NoteController.cs - Note actions → Note view model: binds and validates
NoteHub.Web/Controllers/NoteController.cs - Note actions → CRUD views: returns views
- Note service → Service contract: implements
NoteHub.Services.Data/NoteService.cs - Note service → Notes context: reads and writes
NoteHub.Services.Data/NoteService.cs - Note service → Note entity: maps entities
NoteHub.Services.Data/NoteService.cs - Note service → Note view model: maps data
NoteHub.Services.Data/NoteService.cs - Note view model → Validation rules: uses limits
NoteHub.Web.ViewModels/NoteViewModel.cs - Note view model → Validation messages: uses messages
NoteHub.Web.ViewModels/NoteViewModel.cs - Note entity → Validation rules: uses limits
NoteHub.Data.Models/Note.cs - Notes context → Note entity: tracks entities
NoteHub.Data/NotesDbContext.cs - Notes context → SQL Server: persists via EF