internal void InsertParishioner(Parishioner parishioner) { using (SqlConnection connection = new SqlConnection(connectionString)) { using (SqlCommand cmd = new SqlCommand("INSERT INTO parishioners VALUES", connection)) { cmd.ExecuteNonQuery(); } } }
public void InsertParishioner(Parishioner parishioner) { DataAccess ds = new DataAccess(); ds.InsertParishioner(parishioner); }