public virtual object Clone() { var result = MemberwiseClone() as NotificationMessage; result.TenantIdentity = TenantIdentity?.Clone() as TenantIdentity; return(result); }
public virtual object Clone() { var result = MemberwiseClone() as Notification; result.Templates = Templates?.Select(x => x.Clone()).OfType <NotificationTemplate>().ToList(); result.TenantIdentity = TenantIdentity?.Clone() as TenantIdentity; return(result); }