Example #1
0
 public static void addSuperadmin()
 {
     var employee = createSuperEmployee();
     var user = createSuperUser();
     var temp = new EmployeeBLL();
     if (temp.find(user.username) != null)
         return;
     var tempEmpBLL = new EmployeeBLL();
     var tempUserBLL = new UserBLL();
     tempEmpBLL.add(employee);
     user.ID = employee.employeeID;
     tempUserBLL.add(user);
 }
 public AdminEmployeeController(EmployeeBLL employeeBLL, UserBLL userBLL, LoggingBLL loggingBLL)
 {
     _employeeBLL = employeeBLL;
     _userBLL = userBLL;
     _loggingBLL = loggingBLL;
 }
 public AdminEmployeeController()
 {
     _employeeBLL = new EmployeeBLL();
     _userBLL = new UserBLL();
     _loggingBLL = new LoggingBLL();
 }
 public SecurityController(EmployeeBLL employeeBLL, UserBLL userBLL, LoggingBLL loggingBLL)
 {
     _EmployeeBLL = employeeBLL;
     _userBLL = userBLL;
     _loggingBLL = loggingBLL;
 }
 public SecurityController()
 {
     _userBLL = new UserBLL();
     _EmployeeBLL = new EmployeeBLL();
     _loggingBLL = new LoggingBLL();
 }