public ActionResult Edit(long id) { DatabaseContext dbcontext = new DatabaseContext(); var employee = dbcontext.Employees.SingleOrDefault(emp => emp.Id == id); return View(employee); }
// // GET: /Employee/ public ActionResult Index() { DatabaseContext dbcontext = new DatabaseContext(); return View(dbcontext.Employees); }