public void SaveConfiguration(Configuration config) { var result = _configurationRepo.Save(config); _defaultConfiguration = GetDefaultConfiguration(); }
private void SaveConfiguration() { try { var newConfig = new Configuration { Name = configName.Text, LocalFilePath = localPath.Text, ServicePath = servicePath.Text, IsDefault = isDefaultCheck.Checked, OwnerProfile = new OwnerProfile { FirstName = firstName.Text, LastName = lastName.Text, EmailAddress = emailAddress.Text, Password = password.Text } }; _configurationManager.SaveConfiguration(newConfig); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void DeleteConfiguration(Configuration config) { _configurationRepo.Delete(config); }