public async Task RedeemWinnerAsync(int drawingId, int userId) { int authUserId = GetClaimId(ClaimType.UserId); if (HasPermission(Permission.PerformDrawing) || HasPermission(Permission.ViewUserDrawings)) { await _drawingRepository.RedeemWinnerAsync(drawingId, userId); } else { _logger.LogError($"User {authUserId} doesn't have permission to redeem user {userId} from drawing {drawingId}."); throw new GraException("Permission denied."); } }