Salary Management System
A web app that calculates salary and overtime for a government organization and runs monthly payroll. ASP.NET Core 3 MVC, EF Core 3 and SQL Server.
Full Stack Developer · 2015 - 2017 · Government
Tech: ASP.NET Core 3, EF Core 3, MVC, SQL Server
The problem
Salary and overtime were worked out by hand. That caused errors, disputes and slow month-end closes.
The approach
An ASP.NET Core 3 MVC app on EF Core 3 and SQL Server, with all pay calculations in one payroll engine and pay rules stored as data.
The architecture
Browser to MVC controllers, which call a payroll engine that reads and writes SQL Server through EF Core 3.
Outcomes
- Salary and overtime calculated the same way every time
- Monthly payroll runs with a summary to review before finalising
- Rate changes made in data, without code changes
- Fewer manual errors and a faster month-end
Overview
A web app that handles salary and overtime payments for a government organization. I built it with ASP.NET Core 3 MVC, EF Core 3 and SQL Server. It replaced payroll math that used to be done by hand.
The problem
Salary and overtime were calculated manually. There were mistakes, people disputed their pay, and month-end took too long. The system had to:
- Calculate base salary plus overtime from recorded hours.
- Apply the organization's pay rules the same way for everyone.
- Run monthly payroll and produce reports.
Architecture
flowchart LR
B[Browser]
subgraph App[ASP.NET Core 3 MVC]
C[Controllers]
PR[Payroll Engine]
end
DB[(SQL Server)]
B --> C
C --> PR
PR -->|EF Core 3| DB
How it's built
- One payroll engine: a single service computes base pay and overtime from hours and rate rules. All the calculation logic sits in one place I could test.
- The web side is ASP.NET Core 3 MVC with EF Core 3 over SQL Server, holding employees, hours and pay records.
- Monthly payroll runs as a batch over all employees, and the results can be reviewed before they are finalised.
Monthly payroll run
sequenceDiagram
participant A as Admin
participant PR as Payroll Engine
participant DB as SQL Server
A->>PR: Start monthly run
loop each employee
PR->>DB: Read hours + rules
PR->>PR: Compute base + overtime
PR->>DB: Write pay record
end
PR-->>A: Run summary + report
What was tricky
- Pay rules change over time. I kept them as data, so a rate change doesn't need a code change and older runs can still be reproduced.
- Keeping the math in one engine made results consistent and easy to check.
Result
Salary and overtime are calculated consistently, payroll runs every month with a summary to review, and month-end has fewer manual errors.