Example #1
0
        //******************Retrieve Student Details**********************
        // GET: Student
        public ActionResult Index()
        {
            StudentHandle dbhandle = new StudentHandle();

            ModelState.Clear();
            return(View(dbhandle.GetStudent()));
        }
Example #2
0
        //****************************EDIT STUDENT DETAILS********************
        // GET: Student/Edit/5
        public ActionResult Edit(int id)
        {
            StudentHandle sdb = new StudentHandle();

            return(View(sdb.GetStudent().Find(smodel => smodel.Id == id)));
        }