private void btnDelete_Click(object sender, EventArgs e) { var model = new LocationModel(); model.ID = int.Parse(txtID.Text); model.LOCATION_NAME = txtLOCATION_NAME.Text; model.Delete(); }