Case study · 2026
VitalPet
Veterinary clinic management platform
A veterinary management web application built with two classmates as the final project for Web Development and Architectures. The delivered version focused on users, pets, role-based access, auditing and data integrity checks.
- ASP.NET
- C#
- SQL Server
- ADO.NET
- .NET Framework 4.8.1
- Git
- Role
- Development in a three-person team: layers, security, auditing and data integrity checks
- Scope
- 5 layers · 3 roles · 9 implemented screens
- Interface
- ASP.NET Web Forms on .NET Framework 4.8.1
- Database
- SQL Server with connected and disconnected ADO.NET, event log and backup
Context
The problem the project addresses.
The project proposes bringing client records, pets, clinical histories, appointments, inventory and veterinary sales into one application.
For the Web Development and Architectures final project, we designed the screens, data model, use cases and a permission scheme based on patente, familia and perfil. The delivered application covers authentication, user administration, pet registration, auditing, backup and integrity checks. The remaining features were part of the design.
We used ASP.NET Web Forms, .NET Framework 4.8.1, C#, ADO.NET and SQL Server. We used Git and Git Flow to coordinate changes across the team.
Scope
The processes the system covers and the roles that run them.
Processes
Access and user management
Registration with DNI validation and strong-password rules, account lockout after three failed attempts, user creation and editing by role, and password change.
Pet management
Pet registration with species, breed and date of birth, linked to the client who registers it.
Data integrity
Horizontal check digits per record and vertical ones per table. If verification fails, the system enters maintenance mode until it is repaired.
Auditing and continuity
Event log with module, event and criticality; database backup and restore from inside the application; check-digit verification and repair.
Roles
Client
Registers their pets and changes their password.
Administrator
Manages users and reads the event log.
Web Master
Runs backup and restore, and manages the check digits.
Architecture
Interface, entities, business rules, data and services.
-
Presentation
GUIASP.NET Web Forms pages with a shared Master Page. They accept user input, display results and delegate operations to the other layers.
-
Entities
BEUser, pet and event entities used to exchange data between layers. They are constructed from a DataRow.
-
Business
BLLValidation, access rules, attempt lockout, check digits and event logging.
-
Data
DALADO.NET against SQL Server, with a base class that reads the connection string from Web.config.
-
Services
Shared session management, password hashing, encryption and utility functions.
The interface delegates rules to the business layer and queries to the data layer. The login validates credentials; the Forms Authentication ticket and Web.config settings enforce access restrictions on the server.
Decisions
Implementation choices and the reasons behind them.
-
Server-side role authorisation
The login compares the password hash and locks the account after three failed attempts. Signing in creates a Forms Authentication ticket containing the user role. Global.asax rebuilds that role on each request, and Web.config restricts access to pages. These restrictions also apply when someone enters a URL directly.
-
Password hashing and personal data encryption
Passwords are stored as SHA-256 hashes. First names, last names, usernames and email addresses use AES because the application needs to retrieve and display them. The data layer encrypts on write and decrypts on read.
-
Record and table verification
Each record has a horizontal check digit calculated from its fields. Each table has a vertical one stored in a control table. Recalculating them detects changes made outside the application and identifies the affected table. A mismatch puts the system into maintenance mode until a Web Master repairs it through DV_Form.
-
Two ADO.NET access models
Short reads and validation use SqlCommand and readers with an open connection. Lists and create, update and delete operations use SqlDataAdapter and DataTable to work in memory and release the connection earlier.
-
Application event logging
Signing in and registering users generate events with a module, date, user and criticality. The log can be viewed in the application and filtered by user, date, module, event and criticality.
Outcome
What was delivered.
- Authentication with SHA-256 hashing, lockout after three attempts, and passwords validated for length, upper case, numbers and symbols.
- Page-level role authorisation with Forms Authentication, Global.asax and Web.config.
- Pet registration and user administration, with personal data encrypted in AES.
- Horizontal and vertical check digits, with a verification and repair screen for the Web Master.
- Event log and database backup and restore from inside the application.
The delivered project includes five layers and nine screens. Further improvements include moving the encryption key out of the code and reviewing password storage, which uses SHA-256 without a salt.