public void DeleteDepartamnet(SubDepartament dep) { if (SubDepartaments.Contains(dep)) { SubDepartaments.Remove(dep); } }
private Manager CreateManager(SubDepartament dep) { Random rnd = new Random(); var endTemp = dep.Name.Skip("Departament".Length).ToArray(); string end = new string(endTemp); string FName = "ManagerF" + end; string LName = "ManagerL" + end; long Phone = long.Parse("89" + rnd.Next(100000000, 999999999)); return(new Manager(FName, LName, Phone, dep)); }
public void AddSubDepartament(SubDepartament dep) { SubDepartaments.Add(dep); }