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(); }
public static QuestionModel Reduce(this FullQuestionModel from) { QuestionModel to = new QuestionModel(); Reduce(from, to); return to; }