예제 #1
0
		public void Apply(Survey s, IAccountingService accounting)
		{
		    s.Questions = Questions;
		    s.Points = Points;
            s.MaxTimes = MaxTimes;
            base.Apply(s, accounting);
		}
예제 #2
0
		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;
		}