Example #1
0
        public String editEmployee(String nameFirst, String nameLast, String homeAddress, String phoneNumber, String emailAddress,
        String sallary,String Cartificate, Employee UpdateEmployee)
        {

            if (Cartificate != "")
            { // Employee type is Trainer
                ((Trainer)UpdateEmployee).setCartificate(Cartificate);
            }
            UpdateEmployee.setNameFirst(nameFirst);
            UpdateEmployee.setNameLast(nameLast);
            UpdateEmployee.setEmailAddress(emailAddress);
            UpdateEmployee.setHomeAddress(homeAddress);
            UpdateEmployee.setphoneNumber(phoneNumber);
            UpdateEmployee.setSallary(sallary);
            return dbConnector.Instance.EditEmployee(UpdateEmployee);
      
        }