public IProfile Add(ProfileCreationArgs profileCreationArgs) { ProfileDomainObject newProfile = ProfileRepository.Add(profileCreationArgs, _accountName); Profiles.Add(newProfile.Name, newProfile); RaiseProfileCollectionChanged(); return(newProfile); }
public ProfileDomainObject Add(ProfileCreationArgs profileCreationArgs, AccountName accountName) { var profileCreated = _profilePersister.Add(profileCreationArgs.ProfileName, !_pluginMetadata.IsNewProfileInitializable, accountName); SaveSettings(profileCreationArgs.Settings, profileCreated); return Create(profileCreated, accountName); }
public IProfile Add(ProfileCreationArgs profileCreationArgs) { return(_currentObjectContext.ProfileCollection.Add(profileCreationArgs)); }