A full ASP.NET MVC web application for managing a property rental business — buildings, apartments, tenants, managers, owners, appointments, and messages. Built solo as an individual final project for a course on Web Server Application Development (course 420-DW4-AS, Fall 2023).
Note: Database connection strings in
Web.confighave been redacted — replaceYOUR_SERVER,YOUR_USERNAME, andYOUR_PASSWORDwith your own SQL Server instance details to run it locally.
- Authentication — users sign up and log in via ASP.NET Forms Authentication, with role-based redirects depending on whether the logged-in user is a Manager, Tenant, or Owner
- Full CRUD across all core entities: Buildings, Apartments, Managers, Tenants, Owners, Appointments, and Messages
- Apartments are linked to Buildings via a foreign key relationship, with a dropdown selector populated from the database
- CSRF protection on all state-changing actions via
[ValidateAntiForgeryToken]
Standard ASP.NET MVC structure:
Controllers/ → One controller per entity (AccountController, ApartmentsController, BuildingsController, ManagersController, TenantsController, MessagesController, AppointmentsController)
Models/ → Entity Framework Database-First models (Model1.edmx) generating C# classes per table
Views/ → Razor views (.cshtml) — Index/Create/Edit/Details/Delete per entity
Content/ → Bootstrap CSS
Scripts/ → jQuery, Bootstrap JS, jQuery Validation
- ASP.NET MVC architecture (Controllers, Models, Razor Views)
- Entity Framework (Database-First) with a relational SQL Server schema
- Forms Authentication and session-based login state
- CSRF protection via anti-forgery tokens
- Client-side validation with jQuery Validate (unobtrusive validation)
- Bootstrap-based responsive UI
Database_Schema.sql contains the full SQL Server schema and seed data for the PRManagementDB database — including the Buildings, Apartments, Managers, Tenants, Owners, Appointments, Messages, and User tables.
- C# / ASP.NET MVC (.NET Framework)
- Entity Framework 6
- SQL Server
- Bootstrap, jQuery
- Run
Database_Schema.sqlagainst a SQL Server instance to create thePRManagementDBdatabase - Open
PRManagementProject.slnin Visual Studio - Update the connection string in
PRManagementProject/Web.configwith your SQL Server instance details - Build and run the solution
Built solo by Riyaz Badhan as a fifth-semester individual academic project.