Project for ASP.NET Programming
Unzip the release zip to the selected folder
- Asp.Net Core 7 SDK
- Windows 10 or newer, Linux distro with .NET 7 support, macOS 10.15 or newer
Application is using SQLite database. Specify its name in appsettings.json file, in SQLiteConnection parameter
On creation of database, the admin user specified in appsettings.json is created. Specify its data in AdminUser value.
There is sample car list (10 cars) created on database creation.
When user is not logged in, the index file with invitation to sign up is shown. User can log in or sign in.
You can register or login using navigation bar or link in the invitation After registering user would need to visit the office to get their data confirmed due to legal reasons.
When user is logged in, user will see greeting and logout option in navigation bar.
User also will see Rentals and Cars button. Rentals button direct to a list where user can see his rentals, cars button direct to car list, where user can see car list and rent button.
Car list:
User can click "Rent" button here and rent selected car Add rental option:
User can specify car, rental date and return date. Rental date cannot be later than Return date. Car must be available to rent. After creating rental, user will be redirected to rental list where rent details are available:
The rent is successful message is depending on account verification. Employee would need to confirm user data upon first rental.
In Rentals menu, admin can rent a car to some customer (the customer select list is active for admins) or delete a rental:
Delete rental would need a additional confirmation:
Admins can create new car, edit a car, delete a car or rent a car
Admins have access to user list, where they could create new user manually, verify user, delete users and edit users.
While editing user, admin can tick verify button and choose roles for the user: