ASP.
NET MVC CRUD Paths (Student Management
System Example)
This document explains the four CRUD (Create, Read, Update, Delete) paths in an [Link] MVC
project connected with Microsoft SQL Server. The example is based on a Student Management
System. Each CRUD process flows through the sequence: View → Controller → DbContext →
Database and back to View.
1. CREATE (Insert New Student)
- URL: /Students/Create
- Controller: [Link]()
- View: Views/Students/[Link]
- DB Action: _context.[Link](student) + SaveChanges()
2. READ (List / Details)
- URL: /Students/Index or /Students/Details/{id}
- Controller: [Link](), [Link](id)
- View: Views/Students/[Link], Views/Students/[Link]
- DB Action: _context.[Link](), _context.[Link](id)
3. UPDATE (Edit Student)
- URL: /Students/Edit/{id}
- Controller: [Link](id)
- View: Views/Students/[Link]
- DB Action: _context.Update(student) + SaveChanges()
4. DELETE (Remove Student)
- URL: /Students/Delete/{id}
- Controller: [Link](id), DeleteConfirmed(id)
- View: Views/Students/[Link]
- DB Action: _context.[Link](student) + SaveChanges()