public void Apply(Award a, IAccountingService accounting) { base.Apply(a, accounting); a.Certificates = Certificates; a.OpenNomination = OpenNomination; a.NomineeUsers = NomineeUsers; a.NomineeGroups = NomineeGroups; }
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; }