// GET: Student public ActionResult Index() { StdentDB dbhandle = new StdentDB(); ModelState.Clear(); return(View(dbhandle.GetStudent())); }
// GET: Student/Edit/5 public ActionResult Edit(int id) { StdentDB sdb = new StdentDB(); return(View(sdb.GetStudent().Find(smodel => smodel.Id == id))); }