public EmployeesController() { db = new TSPEntities(); employeeBusinessManager = new EmployeeBusinessManager(db); roleBusinessManager = new RoleBusinessManager(db); workloadbusinessManager = new WorkloadBusinessManager(db); skillsbusinessManager = new SkillsBusinessManager(db); empskilssbusinessManager = new EmpSkillBusinessManager(db); skilllevelbusinessManager = new SkillLevelsBusinessManager(db); subsidiariesbusinessManager = new SubsidariesBusinessManager(db); empSubsBusinessManager = new EmpSubsBusinessManager(db); }
static List <Subsidary> searchSubs = new List <Subsidary>(); // new list for subs public SearchController() { db = new TSPEntities(); employeeBusinessManager = new EmployeeBusinessManager(db); roleBusinessManager = new RoleBusinessManager(db); workloadbusinessManager = new WorkloadBusinessManager(db); skillsbusinessManager = new SkillsBusinessManager(db); empskilssbusinessManager = new EmpSkillBusinessManager(db); skilllevelbusinessManager = new SkillLevelsBusinessManager(db); subsidiariesbusinessManager = new SubsidariesBusinessManager(db); empSubsBusinessManager = new EmpSubsBusinessManager(db); tracksbusinessManager = new TracksBusinessManager(db); } // Objects from BLL
public RolesController() { db = new TSPEntities(); roleBusinessManager = new RoleBusinessManager(db); }