// GET: Emp public ActionResult Index() { EmpDbHandle dbhandle = new EmpDbHandle(); ModelState.Clear(); return(View(dbhandle.GetEmployee())); }
// GET: Emp/Edit/5 public ActionResult Edit(int id) { EmpDbHandle edb = new EmpDbHandle(); return(View(edb.GetEmployee().Find(em => em.id == id))); }