예제 #1
0
        public static void insert_record(feedback feedback)
        {
            // Open database (create new if file doesn't exist)
            var store = new DataStore("data.json");

            // Get employee collection
            var collection = store.GetCollection <feedback> ();

            collection.InsertOne(feedback);

            store.Dispose();
        }
예제 #2
0
 public static void RegisterResponse(feedback feedback)
 {
     DataManager.insert_record(feedback);
 }