private static void Officeadd(string name, List<Employee> officeemplist, Employee you) { /* 1. Name of the office you are being assinged to. 2. List of employees in office 3. List of employees in company 4. New employee */ you.Work_office = name; officeemplist.Add(you); return; }
private static void ADDtoA(string name, List<Employee> officeemplist, Employee you, List<Employee> wholecompemp, Company j) { Companyadd(j, wholecompemp, you); Officeadd(name,officeemplist,you); return; }
private static void Companyadd(Company j, List<Employee> x, Employee y) { x.Add(y); y.Employer = j.Company_name; return; }