This project is an ASP.NET Core MVC web application designed to manage company departments and personnel. It provides a web interface for performing CRUD (Create, Read, Update, Delete) operations on these entities.
- Framework: .NET 9
- Database: PostgreSQL (configured via Entity Framework Core)
- ORM: Entity Framework Core
- Architecture: MVC (Model-View-Controller)
- Authentication: Cookie-based authentication
- Department Management:
- Add new departments
- View department details
- Update existing departments
- Delete departments
- Personnel Management:
- Add new personnel
- View personnel details
- Update existing personnel
- Delete personnel
- Assign personnel to departments
The project follows a standard ASP.NET Core MVC structure:
Controllers/: Handles incoming requests and returns responses.Models/: Contains the data models (DepartmentModel,PersonnelModel,AccountModel) and theContext.csfor Entity Framework Core.Views/: Contains the UI templates for displaying data.Migrations/: Contains Entity Framework Core database migration files.wwwroot/: Static files like CSS, JavaScript, and images.
- .NET SDK (version 9.0 or later)
- PostgreSQL database server
- An
appsettings.jsonconfigured with your database connection string.
- Restore dependencies:
dotnet restore
- Apply database migrations:
dotnet ef database update
- Run the application:
dotnet run
Your contributions will make the project better! If you want to contribute:
- Fork the project.
- Create your own branch for a new feature or fix (
git checkout -b feature/new-feature). - Commit your changes (
git commit -m 'Added new feature'). - Push your branch to the main repository (
git push origin feature/new-feature). - Open a Pull Request (PR).
This project is licensed under the MIT License. See the LICENSE file for details.