How gauravkh-sys/hrms_mvcdotnet works
Enterprise HRMS is an ASP.NET Core MVC application for HR staff and employees. Its principal workflow routes employee, leave, attendance, or payroll requests through web controllers to application services and persisted HR data; payroll and reporting can produce downloadable exports. The README also describes department assignments, leave approvals and balances, shifts, and overtime, though those details are not fully visible in the sampled source. Arrows reflect documented or indexed references; unsampled features are shown without speculative call paths.
Main entry points: HRMSDbContext.cs HRMS database · EmployeeService.cs Employee service · Program.cs Application startup · PayrollService.cs Payroll service
Components 24
Web and identity
- Employee controller
HRMS/Controllers/EmployeesController.cs - Attendance controller
HRMS/Controllers/AttendanceController.cs - Leave controller
HRMS/Controllers/LeavesController.cs - Payroll controller
HRMS/Controllers/PayrollController.cs - Account controller
HRMS/Controllers/AccountController.cs - Identity user
HRMS.Infrastructure/Identity/ApplicationUser.cs - Application startup
HRMS/Program.cs
Employee domain
- Employee service
HRMS.Application/Services/EmployeeService.cs - Employee aggregate
HRMS.Domain/Entities/Employee.cs - Department
HRMS.Domain/Entities/Department.cs - Email value object
HRMS.Domain/ValueObjects/Email.cs
Leave and attendance
- Attendance service
HRMS.Application/Services/AttendanceService.cs - Attendance record
HRMS.Domain/Entities/AttendanceRecord.cs - Leave service
HRMS.Application/Services/LeaveService.cs - Leave request
HRMS.Domain/Entities/LeaveRequest.cs
Payroll and reports
- Payroll service
HRMS.Application/Services/PayrollService.cs - Payslip
HRMS.Domain/Entities/PaySlip.cs - Salary structure
HRMS.Domain/Entities/SalaryStructure.cs - Excel reporting
HRMS.Application/Services/ExcelReportService.cs
Persistence
- Employee repository
HRMS.Infrastructure/Repositories/EmployeeRepository.cs - HRMS database
HRMS.Infrastructure/Data/HRMSDbContext.cs
Other components
- HR user
- Employee
- SQL Server
Connections 28
- HR user → Employee controller: manages employees
HRMS/Controllers/EmployeesController.cs - Employee → Attendance controller: records time
HRMS/Controllers/AttendanceController.cs - Employee → Leave controller: requests leave
HRMS/Controllers/LeavesController.cs - HR user → Payroll controller: manages payroll
HRMS/Controllers/PayrollController.cs - Employee controller → Employee service: calls
HRMS/Controllers/EmployeesController.cs - Employee controller → Excel reporting: requests exports
HRMS/Controllers/EmployeesController.cs - Attendance controller → Attendance service: calls
HRMS/Controllers/AttendanceController.cs - Leave controller → HRMS database: queries
HRMS/Controllers/LeavesController.cs - Payroll controller → Payroll service: calls
HRMS/Controllers/PayrollController.cs - Account controller → Identity user: manages accounts
HRMS/Controllers/AccountController.cs - Employee service → Employee repository: loads and adds
HRMS.Application/Services/EmployeeService.cs - Employee service → HRMS database: saves changes
HRMS.Application/Services/EmployeeService.cs - Employee service → Identity user: provisions accounts
HRMS.Application/Services/EmployeeService.cs - Employee service → Email value object: validates address
HRMS.Application/Services/EmployeeService.cs - Employee service → Employee aggregate: creates
HRMS.Application/Services/EmployeeService.cs - Employee repository → HRMS database: reads and writes
HRMS.Infrastructure/Repositories/EmployeeRepository.cs - Attendance service → HRMS database: reads and writes
HRMS.Application/Services/AttendanceService.cs - Leave service → HRMS database: reads and writes
HRMS.Application/Services/LeaveService.cs - Payroll service → HRMS database: reads and writes
HRMS.Application/Services/PayrollService.cs - Payroll service → Payslip: creates and exports
HRMS.Application/Services/PayrollService.cs - Excel reporting → HRMS database: reads records
HRMS.Application/Services/ExcelReportService.cs - HRMS database → SQL Server: persists data
- Application startup → HRMS database: configures
HRMS/Program.cs - Application startup → Employee service: registers
HRMS/Program.cs - Application startup → Attendance service: registers
HRMS/Program.cs - Application startup → Leave service: registers
HRMS/Program.cs - Application startup → Payroll service: registers
HRMS/Program.cs - Application startup → Excel reporting: registers
HRMS/Program.cs