How mohamedossama143/employeemanagementsystem works
EmployeeManagementSystem is an ASP.NET Core MVC and Razor Pages application for managing employees, departments, and job titles. Users browse a dashboard or enter a management area; employee workflows support search, filtering, pagination, profile-image upload, and CRUD, while department and job-title workflows enforce assignment constraints. Controllers and Razor Page handlers use a shared EF Core context backed by SQL Server. The tree and excerpts establish the main wiring; view templates and several job-title handlers were not inspected, so their internal interactions are not expanded.
Main entry points: ApplicationDbContext.cs EF Core context · Program.cs ASP.NET routing · Employee.cs Employee entity · HomeController.cs Dashboard
Components 20
Web entry and dashboard
- ASP.NET routing
Program.cs - Dashboard
Controllers/HomeController.cs - Home views
Views/Home
Employee management
- Employee CRUD
Controllers/EmployeeController.cs - Employee views
Views/Employee - Profile images
wwwroot/images
Organization management
- Department CRUD
Controllers/DepartmentController.cs - Department views
Views/Department - Job-title pages
Pages/JobTitles/Index.cshtml.cs - Create job title
Pages/JobTitles/Create.cshtml.cs - Edit job title
Pages/JobTitles/Edit.cshtml.cs - Delete job title
Pages/JobTitles/Delete.cshtml.cs - Job-title details
Pages/JobTitles/Details.cshtml.cs
Domain and persistence
- EF Core context
Data/ApplicationDbContext.cs - Employee entity
Models/Employee.cs - Department entity
Models/Department.cs - Job-title entity
Models/JobTitle.cs - Error view model
Models/ErrorViewModel.cs - SQL Server
Other components
- User
Connections 26
- User → ASP.NET routing: uses
Program.cs - ASP.NET routing → Dashboard: routes
Program.cs - ASP.NET routing → Employee CRUD: routes
Program.cs - ASP.NET routing → Department CRUD: routes
Program.cs - ASP.NET routing → Job-title pages: maps pages
Program.cs - Dashboard → EF Core context: counts records
Controllers/HomeController.cs - Dashboard → Error view model: creates error model
Controllers/HomeController.cs - Dashboard → Home views: returns views
Controllers/HomeController.cs - Employee CRUD → EF Core context: queries and saves
Controllers/EmployeeController.cs - Employee CRUD → Employee views: returns views
Controllers/EmployeeController.cs - Employee CRUD → Profile images: uploads and deletes
Controllers/EmployeeController.cs - Department CRUD → EF Core context: queries and saves
Controllers/DepartmentController.cs - Department CRUD → Department views: returns views
Controllers/DepartmentController.cs - Job-title pages → EF Core context: queries titles
Pages/JobTitles/Index.cshtml.cs - Create job title → EF Core context: creates title
Pages/JobTitles/Create.cshtml.cs - Edit job title → EF Core context: updates title
Pages/JobTitles/Edit.cshtml.cs - Delete job title → EF Core context: deletes title
Pages/JobTitles/Delete.cshtml.cs - Job-title details → EF Core context: reads title
Pages/JobTitles/Details.cshtml.cs - EF Core context → Employee entity: maps
Data/ApplicationDbContext.cs - EF Core context → Department entity: maps
Data/ApplicationDbContext.cs - EF Core context → Job-title entity: maps
Data/ApplicationDbContext.cs - Employee entity → Department entity: references
Models/Employee.cs - Employee entity → Job-title entity: references
Models/Employee.cs - Department entity → Employee entity: has employees
Models/Department.cs - Job-title entity → Employee entity: has employees
Models/JobTitle.cs - ASP.NET routing → SQL Server: configures SQL Server
Program.cs