Exemple #1
0
 public void addEmployee(string fname, string lname, string address, string country, string phone,
     string email, string password, int stationId, string position)
 {
     EmployeeCtr empCtr = new EmployeeCtr();
     int newEmp = empCtr.add(fname, lname, address, country, phone, email, stationId,
         (EmployeePosition)Enum.Parse(typeof(EmployeePosition), position));
     LogInfoCtr logInfoCtr = new LogInfoCtr();
     // email is used as login name for everyone
     logInfoCtr.add(email, password, newEmp);
 }