コード例 #1
0
        private Guid AddSecurityQuestion(Guid id, string question)
        {
            if (_playerRepository.SecurityQuestions.Any(c => c.Id == id))
            {
                return(id);
            }

            return(_playerCommands.CreateSecurityQuestion(new SecurityQuestion {
                Id = id, Question = question
            }));
        }