Example #1
0
        public Game Read(Guid gameId, string userId)
        {
            try
            {
                _authorizer.AssertAuthorizedForRead(userId, gameId);

                return(_repo.Get(gameId));
            }
            catch (Exception ex)
            {
                _logger.Error("An error occurred reading a game", ex);
                throw;
            }
        }