Exemplo n.º 1
0
        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);
		}
Exemplo n.º 3
0
 public IProfile Add(ProfileCreationArgs profileCreationArgs)
 {
     return(_currentObjectContext.ProfileCollection.Add(profileCreationArgs));
 }