public EmployeeInfo getEmployee(EmployeeRequest employeeRequest)
        {
            Employee      employee      = null;
            EmployeeTable employeeTable = employees.Where(x => x.id == employeeRequest.EmployeeId).SingleOrDefault();

            if ((EmployeeType)employeeTable.Type == EmployeeType.FullTimeEmployee)
            {
                employee = new FullTimeEmployee
                {
                    id           = Convert.ToInt32(employeeTable.id),
                    name         = employeeTable.name.ToString(),
                    gender       = employeeTable.gender.ToString(),
                    dateOfBirth  = Convert.ToDateTime(employeeTable.dateOfBirth),
                    Type         = EmployeeType.FullTimeEmployee,
                    annualSalary = Convert.ToInt32(employeeTable.annualSalary)
                };
            }
            else
            {
                employee = new PartTimeEmployee
                {
                    id          = Convert.ToInt32(employeeTable.id),
                    name        = employeeTable.name.ToString(),
                    gender      = employeeTable.gender.ToString(),
                    dateOfBirth = Convert.ToDateTime(employeeTable.dateOfBirth),
                    Type        = EmployeeType.PartTimeEmployee,
                    hourlyPay   = Convert.ToInt32(employeeTable.hourlyPay),
                    hoursWorked = Convert.ToInt32(employeeTable.hoursWorked)
                };
            }
            return(new EmployeeInfo(employee));
        }
        public void saveEmployee(EmployeeInfo employee)
        {
            EmployeeTable employeeTable = new EmployeeTable();

            employeeTable.id          = employee.ID;
            employeeTable.name        = employee.Name;
            employeeTable.gender      = employee.Gender;
            employeeTable.dateOfBirth = employee.DOB;
            employeeTable.Type        = employee.Type;

            if (employee.Type == EmployeeType.FullTimeEmployee)
            {
                employeeTable.annualSalary = employee.AnnualSalary;
            }
            else
            {
                employeeTable.hourlyPay   = employee.HourlyPay;
                employeeTable.hoursWorked = employee.HoursWorked;
            }
            employees.Add(employeeTable);
        }