public static int AddEmployee(LTS.Employee employee) { int?EmployeeID = -1; try { using (LTS.LTSBase access = new LTS.LTSDC()) { access.InsertEmployee(employee.Activated, employee.CellNo, employee.Email, employee.EmpAddress, employee.IDno, employee.IsAdmin, employee.Name, employee.Pass, employee.Salary, employee.Surname, employee.Username, ref EmployeeID); } } catch (Exception ex) { } return(EmployeeID.Value); }