public void UpdateEmployee(int id, EmployeeNew e) { for (int i = 0; i < employees.Count(); i++) { if (employees[i].id == id) { employees[i] = e; } } }
public void AddEmployee(EmployeeNew e) { this.employees.Add(e); }