Example #1
0
        public static Data.Entities.BaseDatabase GetDatabase()
        {
            string content = Read();

            Data.Entities.BaseDatabase baseDatabase =
                Newtonsoft.Json.JsonConvert.DeserializeObject <Data.Entities.BaseDatabase>(content);
            return(baseDatabase);
        }
Example #2
0
        public static void SetDatabase(Data.Entities.BaseDatabase baseDatabase)
        {
            string content = Newtonsoft.Json.JsonConvert.SerializeObject(baseDatabase);

            Write(content);
        }