Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<IActionResult> Details(int? id)
- {
- if (id == null)
- {
- return NotFound();
- }
- var students = await _db.Students.SingleOrDefaultAsync(m => m.Id == id);
- if (students == null)
- {
- return NotFound();
- }
- return View(students);
- }
Add Comment
Please, Sign In to add comment