public void CopyProperties(QuickNSmart.Contracts.Business.Account.IIdentityUser other) { if (other == null) { throw new System.ArgumentNullException(nameof(other)); } bool handled = false; BeforeCopyProperties(other, ref handled); if (handled == false) { Id = other.Id; RowVersion = other.RowVersion; FirstItem.CopyProperties(other.FirstItem); SecondItem.CopyProperties(other.SecondItem); } AfterCopyProperties(other); }
public void CopyProperties(QuickNSmart.Contracts.Business.Account.IAppAccess other) { if (other == null) { throw new System.ArgumentNullException(nameof(other)); } bool handled = false; BeforeCopyProperties(other, ref handled); if (handled == false) { Id = other.Id; RowVersion = other.RowVersion; FirstItem.CopyProperties(other.FirstItem); ClearSecondItems(); foreach (var item in other.SecondItems) { AddSecondItem(item); } } AfterCopyProperties(other); }