예제 #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
            });