//******************Retrieve Student Details********************** // GET: Student public ActionResult Index() { StudentHandle dbhandle = new StudentHandle(); ModelState.Clear(); return(View(dbhandle.GetStudent())); }
//****************************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))); }