public async Task <Venue> GetVenueAsync(int venueId) { Venue venue = _venues.Values.FirstOrDefault(v => v.VenueId == venueId); if (venue == null) { venue = await _venueRepository.GetVenueAsync(venueId); if (venue != null) { _venues.Add(DateTime.Now, venue); } } return(venue); }