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(); }
public static void RegisterResponse(feedback feedback) { DataManager.insert_record(feedback); }