How siddharth-4081/smartcity works
Smart City Management System is a menu-driven console application for managing citizens, employees, complaints, and library books. The user enters through Program, which dispatches menu choices to four services; each service performs its operations against its own in-memory List<T> and displays results. The shared domain layer models records and their display contract, with Citizen and Employee inheriting common person fields. README documents the full CRUD and borrowing/status workflows; unsampled service details are represented only where those capabilities are documented.
Main entry points: Program.cs Menu navigation · ComplaintService.cs Complaint operations · Complaint.cs Complaint record · Person.cs Person base
Components 14
Console workflow
- Menu navigation
Program.cs - Input validation
Utils/InputHelper.cs
Service operations
- Citizen operations
Services/CitizenService.cs - Employee operations
Services/EmployeeService.cs - Complaint operations
Services/ComplaintService.cs - Library operations
Services/LibraryService.cs
Domain models
- Citizen record
Models/Citizen.cs - Employee record
Models/Employee.cs - Complaint record
Models/Complaint.cs - Book record
Models/Book.cs
Shared contracts
- Person base
Abstract/Person.cs - Display contract
Interfaces/IDisplay.cs - Complaint states
Enums/ComplaintStatus.cs
Other components
- User
Connections 17
- User → Menu navigation: uses
README.md - Menu navigation → Input validation: reads input
Program.cs - Menu navigation → Citizen operations: dispatches to
Program.cs - Menu navigation → Employee operations: dispatches to
Program.cs - Menu navigation → Complaint operations: dispatches to
Program.cs - Menu navigation → Library operations: dispatches to
Program.cs - Citizen operations → Citizen record: manages
Services/CitizenService.cs - Employee operations → Employee record: manages
Services/EmployeeService.cs - Complaint operations → Complaint record: manages
Services/ComplaintService.cs - Complaint operations → Complaint states: sets status
Services/ComplaintService.cs - Library operations → Book record: manages
Services/LibraryService.cs - Citizen record → Person base: inherits
Models/Citizen.cs - Employee record → Person base: inherits
Models/Employee.cs - Person base → Display contract: implements
Abstract/Person.cs - Complaint record → Display contract: implements
Models/Complaint.cs - Book record → Display contract: implements
Models/Book.cs - Complaint record → Complaint states: uses states
Models/Complaint.cs