A full-stack web application to report, track, and recover lost or found items, built using ASP.NET Core Web API + MVC + SQL Server.
- ๐ Secure authentication system
- ๐ฅ Role-based access (User & Admin)
- ๐ฆ Complete item lifecycle tracking (Lost / Found โ Collected)
- ๐ผ Image upload and display functionality
- ๐งฉ Clean architecture (MVC + Web API separation)
- ๐ Admin dashboard with reports
- ASP.NET Core Web API (.NET 8)
- Entity Framework Core
- SQL Server
- ASP.NET Core MVC (Razor Views)
- HttpClient (API Integration)
- SQL Server
- MVC frontend communicates with Web API using HttpClient
- Web API handles business logic and database operations
- SQL Server stores user and item data
- Images stored in server (
wwwroot/uploads)
Flow: User โ MVC โ API โ Database
- Register & Login
- Report Lost / Found items
- Upload item images
- View all items
- Manage their own reports
- Mark item as Collected
- View all items
- Access dashboard reports
- Monitor system activity
- Add Lost / Found item
- Edit item details
- Update item status
Lost / Found โ Collected
- Only item owner can update status
- Upload image while reporting item
- Stored in:
wwwroot/uploads/items/
- Displayed in UI
-
View all items
-
Displays:
- Image
- Item Name
- Location
- Status
- Posted User
- Search by item name
- Filter by location and date
- Secure user registration and login
- Role-based access control
- User-specific data handling
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/Auth/register | Register user |
| POST | /api/Auth/login | Login |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/Item | Get all items |
| POST | /api/Item | Add new item |
| GET | /api/Item/{id} | Get item by ID |
| PUT | /api/Item/{id} | Update item |
| PUT | /api/Item/status/{id} | Mark as collected |
| GET | /api/Item/userlist | Get user items |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/User/{id} | Get user details |
- UserId
- Name
- PhoneNumber
- Password
- Role
- ItemId
- ItemName
- Description
- Location
- Date
- Status (Lost / Found / Collected)
- ImagePath
- UserId (FK)
- Open
LostAndFound.API - Run project (F5)
- API runs at:
https://localhost:7215
- Swagger:
https://localhost:7215/swagger
- Open
LostAndFound.Web - Run project (F5)
- Open:
https://localhost:xxxx/Item
File:
Services/ApiService.cs
client.BaseAddress = new Uri("https://localhost:7215/");File: appsettings.json
"ConnectionStrings": {
"DefaultConnection": "Server=.;Database=LostAndFoundDB;Trusted_Connection=True;"
}- Ensure API is running before MVC
- Check API Base URL
- Verify image paths (
/uploads/items) - Check database connection
- JWT Authentication
- Email notifications
- Real-time updates (SignalR)
- Deployment on Azure
- Mobile responsive UI
To build a scalable system that simplifies lost and found item tracking with structured workflows and user-friendly interaction.
Dheetchana K Final Year CSE Student โญ If you like this project, give it a star!





