public void Call()
        {
            var customers = _customerRepository.GetAll();

            PrintHelpers.ShortPrintCustomers(customers);
            Console.WriteLine("Type in customer Id or exit");
            var isRead = ReadHelpers.TryReadNumber(out var customerId);

            if (!isRead)
            {
                return;
            }

            var response = _customerRepository.Delete(customerId);

            if (response == ResponseResultType.Success)
            {
                Console.WriteLine("Customer successfully deleted");
            }

            if (response == ResponseResultType.NoChanges)
            {
                Console.WriteLine("No changes applied");
            }

            if (response == ResponseResultType.NotFound)
            {
                Console.WriteLine("Customer does not exist");
            }

            Console.ReadLine();
            Console.Clear();
        }
        public void Call()
        {
            Console.WriteLine($"Enter start date {DateConstants.DateFormat}");
            var startDate = DateTime.ParseExact(Console.ReadLine(), DateConstants.DateFormat, null);

            Console.WriteLine($"Enter end date {DateConstants.DateFormat}");
            var endDate = DateTime.ParseExact(Console.ReadLine(), DateConstants.DateFormat, null);

            var vehicles = _vehicleRepository.GetAllAvailable();

            PrintHelpers.PrintVehicles(vehicles);
            Console.WriteLine("Type in vehicle id");
            var isVehicleIdRead = ReadHelpers.TryReadNumber(out var vehicleId);

            if (!isVehicleIdRead)
            {
                return;
            }

            var employees = _employeeRepository.GetAll();

            PrintHelpers.PrintEmployees(employees);
            Console.WriteLine("Type in employee id");
            var isEmployeeIdRead = ReadHelpers.TryReadNumber(out var employeeId);

            if (!isEmployeeIdRead)
            {
                return;
            }

            var customers = _customerRepository.GetAll();

            PrintHelpers.ShortPrintCustomers(customers);
            Console.WriteLine("Type in customer id");
            var isCustomerIdRead = ReadHelpers.TryReadNumber(out var customerId);

            if (!isCustomerIdRead)
            {
                return;
            }

            var rentRate = _rentRateRepository.GetNewestRentRates();
            var result   = _rentRepository.Add(startDate, endDate, vehicleId, rentRate.Id, employeeId, customerId);

            Console.WriteLine(result.Message);
            Console.ReadLine();
            Console.Clear();
        }
        public void Call()
        {
            var customers = _customerRepository.GetAll();

            PrintHelpers.ShortPrintCustomers(customers);
            Console.WriteLine("\n Type customer Id or exit");
            var isRead = ReadHelpers.TryReadNumber(out var customerId);

            if (!isRead)
            {
                return;
            }

            var customer = customers.First(c => c.Id == customerId);

            Console.WriteLine("Press enter to skip edit");

            Console.WriteLine($"First Name: ({customer.FirstName})");
            customer.FirstName = ReadHelpers.TryReadLineIfNotEmpty(out var firstName)
                ? firstName
                : customer.FirstName;

            Console.WriteLine($"Last name: ({customer.LastName})");
            customer.LastName = ReadHelpers.TryReadLineIfNotEmpty(out var lastName)
                ? lastName
                : customer.LastName;

            Console.WriteLine($"Oib: ({customer.Oib})");
            customer.Oib = ReadHelpers.TryReadLineIfNotEmpty(out var oib)
                ? oib
                : customer.Oib;

            Console.WriteLine($"Driving License: ({customer.DrivingLicenseIdentifier})");
            customer.DrivingLicenseIdentifier = ReadHelpers.TryReadLineIfNotEmpty(out var drivingLicenseId)
                ? drivingLicenseId
                : customer.DrivingLicenseIdentifier;

            Console.WriteLine($"Date of birth: ({customer.DateOfBirth.ToShortDateString()})");
            customer.DateOfBirth = ReadHelpers.TryReadLineIfNotEmpty(out var dateOfBirthString)
                ? DateTime.ParseExact(dateOfBirthString, DateConstants.DateFormat, null)
                : customer.DateOfBirth;

            var response = _customerRepository.Edit(customer, customerId);

            if (response == ResponseResultType.Success)
            {
                PrintHelpers.PrintCustomer(customer);
            }

            if (response == ResponseResultType.NotFound)
            {
                Console.WriteLine("Customer not found");
            }

            if (response == ResponseResultType.NoChanges)
            {
                Console.WriteLine("No changes applied");
            }

            Console.ReadLine();
            Console.Clear();
        }