Beispiel #1
0
        public async Task <IReadOnlyCollection <Event> > GetEvents(Guid currentMemberId, Guid chapterId)
        {
            await _authorizationService.AssertMemberIsChapterMember(currentMemberId, chapterId);

            await _authorizationService.AssertMembershipIsActive(currentMemberId, chapterId);

            return(await _eventRepository.GetEvents(chapterId, DateTime.UtcNow.Date));
        }