// GET: Student public ActionResult Index() { StudentDBHandle dBHandle = new StudentDBHandle(); ModelState.Clear(); return(View(dBHandle.GetStudents())); }
// GET: Student/Edit/5 public ActionResult Edit(int id) { StudentDBHandle dBHandle = new StudentDBHandle(); return(View(dBHandle.GetStudents().Find(student => student.id == id))); }
// GET: Student/Edit/5/update public ActionResult Edit(int id) //Cambiar a IdStudent { StudentDBHandle dBHandle = new StudentDBHandle(); return(View(dBHandle.GetStudents().Find(oStudentModel => oStudentModel.IdStudent == id))); }