public void Apply(Survey s, IAccountingService accounting) { s.Questions = Questions; s.Points = Points; s.MaxTimes = MaxTimes; base.Apply(s, accounting); }
public static SurveyEditModel FromDomain(Survey s, IAccountingService accounting) { var x = new SurveyEditModel { Points = s.Points, Questions = s.Questions, MaxTimes = s.MaxTimes, }; x.Init(s, accounting); return x; }