Esempio n. 1
0
 public static void Reduce(this FullQuestionModel from, QuestionModel to)
 {
     to.QuestionId = from.QuestionId;
     to.Question = from.Question;
     to.Subject = from.Subject;
     to.SysUser = from.SysUser.Reduce();
     to.Choices = from.Choices.Reduce();
 }
Esempio n. 2
0
 public static QuestionModel Reduce(this FullQuestionModel from)
 {
     QuestionModel to = new QuestionModel();
     Reduce(from, to);
     return to;
 }