public void LoginPengungjung(string nomorKtp, string nomorTahanan, IOnLoginPengunjungFinishedListener listener) { connection = ConnectDB.ConnectingDB(); try { connection.Open(); MySqlCommand command = connection.CreateCommand(); query = "INSERT INTO `jenguk` (`NoKtp_member`, `NoTahanan_napi`, `Date`) VALUES ('" + nomorKtp + "', '" + nomorTahanan + "', CURRENT_TIMESTAMP)"; command.CommandText = query; command.ExecuteNonQuery(); listener.onSuccessKirim(); } catch (Exception e) { listener.onErrorKirim(); Console.WriteLine("Error:" + e); } connection.Close(); }