public void EditActiveContract(EmployeeContract newcontract) { EmployeeContract oldcontract = GetActiveContract(); contracts.Remove(oldcontract); contracts.Add(newcontract); }
//Constructor public EmployeeEmploymentInformation(EmployeeDepartment employeeDepartment, EmployeeContract contract) { this.EmployeeDepartment = employeeDepartment; contracts = new List <EmployeeContract>(); this.contracts.Add(contract); AssignContractNum(contract); }
private void AssignContractNum(EmployeeContract contract) { contract.ContractNum = $"{contract.EmplNum}.{contracts.Count()}"; }
public void InitializeContractHistory(EmployeeContract contract) { contracts.Add(contract); }
public void AddNewContract(EmployeeContract contract) { contracts.Add(contract); AssignContractNum(contract); }