Exemplo n.º 1
0
        public async Task <VersionedServiceResult <IReadOnlyCollection <Venue> > > GetVenues(long?currentVersion, Guid currentMemberId, Guid chapterId)
        {
            await _authorizationService.AssertMemberIsChapterMember(currentMemberId, chapterId);

            return(await _cacheService.GetOrSetVersionedCollection(
                       () => _venueRepository.GetVenues(chapterId),
                       () => _venueRepository.GetVenuesVersion(chapterId),
                       currentVersion,
                       chapterId));
        }