Пример #1
0
		public void Apply(Award a, IAccountingService accounting)
		{
            base.Apply(a, accounting);

            a.Certificates = Certificates;
            a.OpenNomination = OpenNomination;
            a.NomineeUsers = NomineeUsers;
            a.NomineeGroups = NomineeGroups;
		}
Пример #2
0
		public static AwardEditModel FromDomain(Award a, IAccountingService accounting)
		{
            var x = new AwardEditModel {
                Certificates = a.Certificates,
                OpenNomination = a.OpenNomination,
                NomineeUsers = a.NomineeUsers,
                NomineeGroups = a.NomineeGroups,
			};
            x.Init(a, accounting);
            return x;
		}