public GraphiteConfig GetConfig() { var config = Database.Load <GraphiteConfig>(GraphiteConfig.DocumentName()); if (config == null) { config = new GraphiteConfig(); Database.Store(config, GraphiteConfig.DocumentName()); } return(config); }
public void SaveConfig(GraphiteConfig config) { Database.Store(config, GraphiteConfig.DocumentName()); }