public List <DatabasesConnector> getListDatabases()
        {
            List <DatabasesConnector> balikan = new List <DatabasesConnector>();

            DataTable tempGet = databaseConnector.GetData();

            for (int i = 0; i < tempGet.Rows.Count; i++)
            {
                DatabasesConnector temp = new DatabasesConnector();
                temp.id_paroki     = tempGet.Rows[i][0].ToString();
                temp.lokasi_paroki = tempGet.Rows[i][1].ToString();
                temp.nama_database = tempGet.Rows[i][2].ToString();

                balikan.Add(temp);
            }

            return(balikan);
        }
 public bool deleteDatabase(DatabasesConnector temp)
 {
     return(databaseConnector.DeleteQuery(Convert.ToInt32(temp.id_paroki), temp.lokasi_paroki, temp.nama_database) > 0);
 }
 public bool updateDatabase(DatabasesConnector param, DatabasesConnector input)
 {
     return(databaseConnector.UpdateQuery(Convert.ToInt32(input.id_paroki), input.lokasi_paroki, input.nama_database, Convert.ToInt32(param.id_paroki), param.lokasi_paroki, param.nama_database) > 0);
 }
 public bool tambahDatabase(DatabasesConnector temp)
 {
     return(databaseConnector.InsertQuery(Convert.ToInt32(temp.id_paroki), temp.lokasi_paroki, temp.nama_database) > 0);
 }