The application provides an opportunity to rent a vehicle from an office after registration and filling out the rental form. The selection is made through a panel with vehicle categories, which is also the home page
or through the all vehicles section.
It is possible to view the details of the car and comments left by previous renters.
Each user has a section (My Rent) with their current rent through which the vehicle is returned after the end of the rent.
If all vehicles in a given category are already rented, an appropriate message will pop up like in the example below.
After granted an access level by the administration, an employee with the rank of manager can edit the data and add new ones
such as: comments, vehicle details, trade discounts, categories.
Manager area:
An employee with the rank of administrator (which is added automatically with database seeding) can add/remove roles to a given user that give the level of access to the data.
1. Download ZIP file from top green button <> Code
2. Open or download and open MSSQLServer instance
3. Open CarHire.csproj.user with IDE
4. Right click on CarHire and press Manage User Secrets in secret.json write your own connection string
{
"ConnectionStrings": {
"DefaultConnection": "your_own_connection_string"
}
}
5. Open Package Manager Console choose for Default project : CarHire.Infrastructure and type:
update-database
6. It is now ready to use. And you can login with seeded users:
First name | Last name | Password | Role | |
---|---|---|---|---|
John | Doe | [email protected] | 123456 | Admin |
Jane | Doe | [email protected] | 654321 | n/a |