public CreateQuestionWithAnswersCommand CreateCommand() { return(new CreateQuestionWithAnswersCommand() { Content = Content, Answers = Answers.ConvertAll(thisAnswer => thisAnswer.CreateAnswer()), CatalogId = CatalogId !.Value, });
public UpdateQuestionWithAnswersCommand CreateCommand(long questionId) { return(new UpdateQuestionWithAnswersCommand() { Content = Content, Answers = Answers.ConvertAll(thisAnswer => thisAnswer.CreateAnswer()), CatalogId = CatalogId !.Value, QuestionId = questionId, ConcurrencyToken = ConcurrencyToken });