コード例 #1
0
        // GET: Student
        public ActionResult Index()
        {
            StudentDBHandle dBHandle = new StudentDBHandle();

            ModelState.Clear();
            return(View(dBHandle.GetStudents()));
        }
コード例 #2
0
        // GET: Student/Edit/5
        public ActionResult Edit(int id)
        {
            StudentDBHandle dBHandle = new StudentDBHandle();

            return(View(dBHandle.GetStudents().Find(student => student.id == id)));
        }
コード例 #3
0
        // 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)));
        }