private async void Rent_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            try
            {
                var rental = new Rental {
                    EquipmentId = ViewModel.Equipment.Id, CustomerName = ViewModel.CustomerName, CustomerPhoneNumber = ViewModel.CustomerPhoneNumber, StartTime = DateTime.Now, RentalPlanId = ViewModel.SelectedRentalPlan.Id, Equipment = ViewModel.Equipment, RentalPlan = ViewModel.SelectedRentalPlan
                };
                await RentalService.CreateRentalAsync(rental);

                Close();
            }
            catch (HttpStatusException exception)
            {
                MessageBox.Show("Failed to rent item.", "Error", MessageBoxButton.OK, MessageBoxImage.Stop);
            }
        }