public void UpDateEmployee(Employee employee) { if (EmployeeList.Contains(employee)) { var Index = EmployeeList.IndexOf(employee); EmployeeList.Remove(employee); EmployeeList.Insert(Index, employee); } }