Пример #1
0
 /// <inheritdoc />
 public Task <ModerationActionSummary> GetModerationActionSummaryAsync(long moderationActionId)
 {
     return(ModerationActionRepository.ReadSummaryAsync(moderationActionId));
 }
Пример #2
0
        /// <inheritdoc />
        public Task <ModerationActionSummary> GetModerationActionSummaryAsync(long moderationActionId)
        {
            AuthorizationService.RequireClaims(AuthorizationClaim.ModerationRead);

            return(ModerationActionRepository.ReadSummaryAsync(moderationActionId));
        }
Пример #3
0
 /// <inheritdoc />
 public async Task <ServiceResult <ModerationActionSummary> > GetModerationActionSummaryAsync(long moderationActionId)
 => await AuthorizationService.CheckClaims(AuthorizationClaim.ModerationRead)
 .ShortCircuitAsync(ModerationActionRepository.ReadSummaryAsync(moderationActionId));