// 1. *************RETRIEVE ALL EMPLOYEE DETAILS ****************** // GET: Employee public ActionResult Index() { EmployeeDBHandle dbhandle = new EmployeeDBHandle(); ModelState.Clear(); return(View(dbhandle.GetEmployee())); }
// GET: E/Edit/5 public ActionResult Edit(int id) { EmployeeDBHandle edb = new EmployeeDBHandle(); var result = edb.GetEmployee().Find(emodel => emodel.Id == id); return(View(result)); }