public int DeleteCardInfo(string cardNumber) { int rowAffected = 0; using(CardInfoDA cardInfoDA = new CardInfoDA()) { rowAffected = cardInfoDA.DeleteCardInfo(cardNumber); } return rowAffected; }
public void DeleteCardInfo(bool isForStudent,string id) { using ( CardInfoDA cardInfoDA = new CardInfoDA() ) { cardInfoDA.DeleteCardInfo(isForStudent,id); } }