private void MarkSlot(ParkingSlotVM slotVM, bool occupied)
 {
     if (slotVM == null)
     {
         return;
     }
     slotVM.IsOccupied = occupied;
 }
        private void DeleteSlotHandler(ParkingSlotVM parkingSlotVM)
        {
            var index = SelectedImage.ParkingSlots.IndexOf(parkingSlotVM);

            SelectedImage.ParkingSlots.Remove(parkingSlotVM);
            SelectedSlot = index == -1
                ? null
                : SelectedImage.ParkingSlots.Count <= index
                    ? SelectedImage.ParkingSlots.LastOrDefault()
                    : SelectedImage.ParkingSlots[index];
        }