public override bool Commit() { var defaultInstallation = Installations.First(i => i.IsDefault.Value); _profileService.AddInstalls(Installations.Select(i => i.ConcreteInstall.Directory).ToArray()); _profileService.SetSelectedInstall(defaultInstallation.ConcreteInstall); return(base.Commit()); }
public void AddInstalls(string directory) { _profileService.AddInstalls(directory); }