public ActionResult Edit([Bind(Include = "EmployeeID,Email,FullName,Password,ComfirmPassword,JoinDate,Position,Team,Status,Security")] EditEmployee modifiedEmployee) { if (ModelState.IsValid) { Employee originalEmployee = db.Employees.Find(modifiedEmployee.EmployeeID); modifiedEmployee.UpdateOriginal(originalEmployee); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(modifiedEmployee)); }