private void SendSelectionChangedMessage(StopSearchElementViewModel value)
 {
     if (OwnedBy == SearchSection.Nearby)
     {
         _messenger.Send(new MessageTypes.NearbyListSelectionChanged(value.BackingStop));
     }
     if (OwnedBy == SearchSection.Stops)
     {
         _messenger.Send(new MessageTypes.StopsListSelectionChanged(value.BackingStop));
     }
 }
        public void SetMapSelectedPlace(IEnumerable <Guid> obj)
        {
            Guid?nullableId = obj?.FirstOrDefault();

            if (nullableId != null)
            {
                Guid clickedId = nullableId.Value;
                StopSearchElementViewModel matchingStop = StopsResultList.FirstOrDefault(x => x.BackingStop.Id == clickedId);
                if (matchingStop != null)
                {
                    if (_currentState == StopSearchState.Details)
                    {
                        SwitchToDetailedView(new MessageTypes.ViewStopDetails(matchingStop));
                    }
                    else
                    {
                        SelectedStop = matchingStop;
                    }
                }
            }
        }