public void DisplayEmployees() { var ormAccess = new ORMaccess(); var employees = ormAccess.GetAllEmployees(); var jobPositions = ormAccess.GetAllJobPositions(); var pensionFunds = ormAccess.GetAllPensionFunds(); foreach (var employee in employees) { var jobPosition = jobPositions.FirstOrDefault(j => j.Id == employee.JobPosition); var pensionFund = pensionFunds.FirstOrDefault(p => p.EmployeeId == employee.Id); DisplayEmployeeInformation(employee, jobPosition, pensionFund); } Console.ReadLine(); }
public void UpdateSalaries() { var ormAccess = new ORMaccess(); ormAccess.UpdateSalaries(); }