Esempio n. 1
0
 // http://localhost/student/details/1
 // http://localhost/student/details?id=1
 public ActionResult Details(int id)
 {
     return(View(StudentDao.GetRecordById(id)));
 }
Esempio n. 2
0
 // http://localhost/student/edit/1
 // http://localhost/student/edit?id=1
 public ActionResult Edit(int id)
 {
     //var std = studentList.Where(s => s != null && s.StudentId == id).FirstOrDefault();
     return(View(StudentDao.GetRecordById(id)));
 }