How chaitanyapuranik/payrollmanagementsystem works
This ASP.NET Core Razor Pages application takes employees from registration and login through weekly timesheet entry and submission; administrators review submitted sheets, generate payroll at the documented flat 13% tax rate, and inspect reports and run history. Identity and role policies protect the user and admin areas, while services implement timesheet and payroll operations over the EF Core context. The excerpts show service-to-context behavior and startup registration; page-to-service calls are supported by the source index, while unspecified database hosting is represented generically.
Main entry points: AppDbContext.cs EF Core context · Program.cs Razor Pages host · ITimesheetService.cs Timesheet contract · TimesheetService.cs Timesheet service
Components 27
Identity and access
- Razor Pages host
Program.cs - Identity pages
Areas/Identity/Pages - Identity user
Areas/Identity/Data/AppUser.cs - Registration
Areas/Identity/Pages/Account/Register.cshtml.cs - Profile management
Pages/User/Profile/Index.cshtml.cs - Email sender
Services/EmailSender.cs
Timesheet workflow
- User dashboard
Pages/User/Index.cshtml.cs - Timesheet entry
Pages/User/Timesheets/Edit.cshtml.cs - Timesheet service
Services/Implementations/TimesheetService.cs - Timesheet contract
Services/Interfaces/ITimesheetService.cs - Admin dashboard
Pages/Admin/Index.cshtml.cs - Timesheet review
Pages/Admin/Timesheets/Review.cshtml.cs - Submitted timesheets
Pages/Admin/Timesheets/Index.cshtml.cs
Payroll operations
- Payroll generation
Pages/Admin/PayrollRuns/Generate.cshtml.cs - Payroll service
Services/Implementations/PayrollService.cs - Payroll contract
Services/Interfaces/IPayrollService.cs - Run history
Pages/Admin/PayrollRuns/Index.cshtml.cs - Payroll report
Pages/Admin/PayrollRuns/Report.cshtml.cs
Domain and persistence
- EF Core context
Data/AppDbContext.cs - Application database
- Employee records
Models/Employee.cs - Timesheet records
Models/Timesheet.cs - Daily entries
Models/TimesheetEntry.cs - Pay run records
Models/PayRun.cs - Pay details
Models/PayDetail.cs
Other components
- Employee
- Administrator
Connections 37
- Employee → Razor Pages host: uses
README.md - Administrator → Razor Pages host: uses
README.md - Razor Pages host → Identity pages: maps pages
Program.cs - Razor Pages host → EF Core context: configures
Program.cs - Razor Pages host → Timesheet service: registers
Program.cs - Razor Pages host → Payroll service: registers
Program.cs - Razor Pages host → Identity user: configures identity
Program.cs - Razor Pages host → Email sender: registers
Program.cs - Registration → Identity user: creates
Areas/Identity/Pages/Account/Register.cshtml.cs - Registration → Employee records: creates
Areas/Identity/Pages/Account/Register.cshtml.cs - Registration → EF Core context: persists
Areas/Identity/Pages/Account/Register.cshtml.cs - Profile management → EF Core context: reads and updates
Pages/User/Profile/Index.cshtml.cs - User dashboard → EF Core context: reads
Pages/User/Index.cshtml.cs - Timesheet entry → Timesheet contract: calls
Pages/User/Timesheets/Edit.cshtml.cs - Timesheet service → EF Core context: reads and writes
Services/Implementations/TimesheetService.cs - Timesheet service → Timesheet contract: implements
Services/Implementations/TimesheetService.cs - Timesheet service → Timesheet records: loads and saves
Services/Implementations/TimesheetService.cs - Timesheet service → Daily entries: loads and saves
Services/Implementations/TimesheetService.cs - Admin dashboard → Timesheet contract: calls
Pages/Admin/Index.cshtml.cs - Admin dashboard → Payroll contract: calls
Pages/Admin/Index.cshtml.cs - Timesheet review → Timesheet contract: calls
Pages/Admin/Timesheets/Review.cshtml.cs - Submitted timesheets → Timesheet contract: calls
Pages/Admin/Timesheets/Index.cshtml.cs - Payroll generation → Timesheet contract: reads submissions
Pages/Admin/PayrollRuns/Generate.cshtml.cs - Payroll generation → Payroll contract: starts run
Pages/Admin/PayrollRuns/Generate.cshtml.cs - Payroll service → Payroll contract: implements
Services/Implementations/PayrollService.cs - Payroll service → EF Core context: reads and writes
Services/Implementations/PayrollService.cs - Payroll service → Pay run records: creates
Services/Implementations/PayrollService.cs - Payroll service → Pay details: calculates and creates
Services/Implementations/PayrollService.cs - Run history → Payroll contract: calls
Pages/Admin/PayrollRuns/Index.cshtml.cs - Payroll report → Payroll contract: calls
Pages/Admin/PayrollRuns/Report.cshtml.cs - EF Core context → Application database: persists entities
Data/AppDbContext.cs - EF Core context → Identity user: stores identity
Data/AppDbContext.cs - EF Core context → Employee records: maps
Data/AppDbContext.cs - EF Core context → Timesheet records: maps
Data/AppDbContext.cs - EF Core context → Daily entries: maps
Data/AppDbContext.cs - EF Core context → Pay run records: maps
Data/AppDbContext.cs - EF Core context → Pay details: maps
Data/AppDbContext.cs