private void PrepareSingleVenue() { var venue = Venues.FirstOrDefault(); if (venue?.Latitude == null || venue?.Longitude == null) { return; } Locations = string.Format(_format, venue.Latitude.Value.ToString("###.########", System.Globalization.CultureInfo.InvariantCulture), venue.Longitude.Value.ToString("###.########", System.Globalization.CultureInfo.InvariantCulture), $"{venue.VenueName}, {venue.City}", $"<b>{venue.VenueName}</b><br />{venue.Street}<br />{venue.PostalCode} {venue.City}<br />"); Locations = Locations.TrimEnd(new[] { ',', '\n' }); }
public Venue GetVenueById(int id) { return(Venues.FirstOrDefault(v => v.VenueId == id)); }