private void InsertInDB(string[] decodedToken) { DB_Singleton instance = DB_Singleton.Instance; instance.InitDB(); instance.InitialInsert(decodedToken[0], decodedToken[1], decodedToken[2], decodedToken[3]); }
private void InsertInDB(string username, string email, string firstname, IRestResponse response) { //DB_Singleton InitDB DB_Singleton instance = DB_Singleton.Instance; instance.InitDB(); JObject respJson = JObject.Parse(response.Content); string token = (string)respJson["token"]; instance.InitialInsert(token, username, email, firstname); }