Пример #1
0
        public static Config GetConfig()
        {
            if (SettingsCollection.Count() != 0)
            {
                return(SettingsCollection.FindAll().First());
            }

            SettingsCollection.Insert(new Config().Index, new Config());
            SettingsCollection.EnsureIndex(x => x.Index);

            return(SettingsCollection.FindAll().First());
        }