public static double CalculateSalary(EContractType contractType, double hourlySalary, double monthlySalary) { var calculateSalaryFactory = EmployeeFactory.Factory(contractType, hourlySalary, monthlySalary); return(calculateSalaryFactory.CalculateAnnualSalary()); }