private void BtnDelete_Click(object sender, EventArgs e) { if (lstAttributes.SelectedIndex > -1) { attributeRepository.Delete(attribute); LoadListBox(); ClearTextBoxes(); } }
public void Delete(CharacterAttribute obj, DbTransaction transaction = null) { _attributeRepository.Delete(obj, transaction); }