EmployeePortal/Factory/EmployeeManagerFactory.cs
/// <summary>
/// Get employee details using the type id.
/// </summary>
/// <param name="employeeTypeId"></param>
/// <returns></returns>
Get employee details using the type id.
Get employee details using the type id .
public IEmployeeManager GetEmployeeManager(int employeeTypeId)
        {
            IEmployeeManager employeeManager = null;
            if (employeeTypeId == 1)
            {
                employeeManager = new PermanentEmployeeManager();
            }
            else if (employeeTypeId == 2)
            {
                employeeManager = new ContractEmployeeManager();
            }
            return employeeManager;
        }
public IEmployeeManager GetEmployeeManager ( int employeeTypeId ) { IEmployeeManager employeeManager = null ; if ( employeeTypeId == 1 ) { employeeManager = new PermanentEmployeeManager ( ) ; } else if ( employeeTypeId == 2 ) { employeeManager = new ContractEmployeeManager ( ) ; } return employeeManager ; }
Get employee details using the type id.
Get employee details using the type id .
None
employeeTypeId
int
None