Exemplo n.º 1
0
 public async Task <VersionedServiceResult <IReadOnlyCollection <Venue> > > GetPublicVenues(long?currentVersion, Guid chapterId)
 {
     return(await _cacheService.GetOrSetVersionedCollection(
                () => _venueRepository.GetPublicVenues(chapterId),
                () => _venueRepository.GetPublicVenuesVersion(chapterId),
                currentVersion,
                $"public-{chapterId}"));
 }