public ProviderConfigurationViewModel(ProviderConfigurationViewModel pcvm)
 {
     Id                 = pcvm.Id;
     IsEnabled          = pcvm.IsEnabled;
     DisplayName        = pcvm.DisplayName;
     ProviderName       = pcvm.ProviderName;
     ProviderIdKey      = pcvm.ProviderIdKey;
     ProviderSecret     = pcvm.ProviderSecret;
     ProviderIdentifier = pcvm.ProviderIdentifier;
     UserIdentifier     = pcvm.UserIdentifier;
     Attributes         = pcvm.Attributes != null
         ? pcvm.Attributes
         : new List <ProviderAttributeViewModel>();
 }
 public ProviderConfigurationViewModel(
     ProviderConfigurationViewModel pcvm,
     IEnumerable <ProviderAttributeViewModel> attributes)
     : this(pcvm) {
     this.Attributes.AddRange(attributes);
 }