public int SaveEmployee(Models.Employee employee) { EmployeeManagerFactory factory = new EmployeeManagerFactory(); IEmployeeManager manager = factory.GetManager(employee.EmployeeType.EmployeeTypeId); employee.HourlyPay = manager.GetHourlyPay(); employee.BonusRate = manager.GetBonusRate(); return(commandRepository.SaveEmployee(employee)); }