public void Call() { var employees = _employeeRepository.GetAll(); PrintHelpers.PrintEmployees(employees); Console.WriteLine("Enter employee id or exit"); var isRead = ReadHelpers.TryReadNumber(out var employeeId); if (!isRead) { return; } Console.WriteLine("Number of last rents"); isRead = ReadHelpers.TryReadNumber(out var numberOfMonths); if (!isRead) { return; } var rents = _rentRepository.GetByEmployee(numberOfMonths, employeeId); PrintHelpers.PrintRents(rents); Console.ReadLine(); Console.Clear(); }