示例#1
0
 public CreateQuestionWithAnswersCommand CreateCommand()
 {
     return(new CreateQuestionWithAnswersCommand()
     {
         Content = Content,
         Answers = Answers.ConvertAll(thisAnswer => thisAnswer.CreateAnswer()),
         CatalogId = CatalogId !.Value,
     });
示例#2
0
        public UpdateQuestionWithAnswersCommand CreateCommand(long questionId)
        {
            return(new UpdateQuestionWithAnswersCommand()
            {
                Content = Content,
                Answers = Answers.ConvertAll(thisAnswer => thisAnswer.CreateAnswer()),
                CatalogId = CatalogId !.Value,

                QuestionId = questionId,
                ConcurrencyToken = ConcurrencyToken
            });