How mariana8l8/contactmanagermvcapp works
Contact Manager is an ASP.NET MVC application for importing, browsing, and maintaining contacts in SQL Server. Users upload CSV files; the controller delegates parsing and validation, then persists valid batches. The contacts page renders a server-paged and server-ordered list through a view component; browser JavaScript adds current-page filtering and sorting plus AJAX inline edits and deletes. Repository and parser behavior is supported by sampled source; page-to-component rendering and database configuration are described by the README/tree, so those links are shown at the documented level.
Main entry points: ContactRepository.cs Contact repository · ContactsListViewComponent.cs List component · ContactsController.cs Contacts controller · Index.cshtml Contacts page
Components 15
Web experience
- Contacts controller
ContactManager/Controllers/ContactsController.cs - Contacts page
ContactManager/Views/Contacts/Index.cshtml - List component
ContactManager/ViewComponents/ContactsListViewComponent.cs - List template
ContactManager/Views/Contacts/Components/ContactsList/Default.cshtml - Table interactions
ContactManager/wwwroot/js/contacts.js
CSV import
- CSV parser
ContactManager/Services/ContactCsvParser.cs - Import result
ContactManager/Models/CsvImportResult.cs
Contact persistence
- Contact repository
ContactManager/Data/ContactRepository.cs - SQL connection factory
ContactManager/Data/SqlConnectionFactory.cs - SQL Server
Contact domain
- Contact model
ContactManager/Models/Contact.cs - Query parameters
ContactManager/Models/ContactQueryParameters.cs - Paged result
ContactManager/Models/PagedResult.cs - List view model
ContactManager/Models/ContactListViewModel.cs
Other components
- User
Connections 16
- User → Contacts controller: requests page
- Contacts controller → Contacts page: renders
- Contacts page → List component: invokes
- List component → Contact repository: loads page
- List component → List template: renders
- Contact repository → SQL Server: queries and writes
- Contact repository → SQL connection factory: creates connection
- Contacts controller → CSV parser: parses upload
- CSV parser → Import result: returns validation
- Contacts controller → Contact repository: inserts, updates, deletes
- List component → List view model: builds
- Contact repository → Paged result: returns page
- Table interactions → Contacts controller: posts edits and deletes
- User → Table interactions: filters and sorts
- Contact repository → Contact model: reads and writes
- List component → Query parameters: normalizes query