Пример #1
0
 public void UpdateQuestion(Question question)
 {
     _repo.UpdateQuestion(question);
 }
Пример #2
0
 public QuestionViewModel(Question question)
 {
     this.Id = question.Id;
     this.QuestionDescription = question.QuestionDescription;
     this.Options = question.Options.Select(o => new OptionViewModel(o)).ToList();
 }