public void createUserEmployee(User user, Employee employee) { string insertUser = userMapper.createUser(user); string insertEmployee = employeeMapper.createEmployee(employee); if (createTransaction(insertUser, insertEmployee)) { EntityArgs e = new EntityArgs(employee); OnInsertEntity(e); } user.Dispose(); }
public void createUserEmployee(User user, Employee employee) { string insertUser = userMapper.createUser(user); string insertEmployee = employeeMapper.createEmployee(employee); if (createTransaction(insertUser, insertEmployee)){ EntityArgs e = new EntityArgs(employee); OnInsertEntity(e); } user.Dispose(); }
public Employee(User user) { User_id = user.UserId; Position = user.getUserLevel(); user.Dispose(); }