public int InsertCardInfo(CardInfo card) { using(CardInfoDA cardInfoDA = new CardInfoDA()) { return cardInfoDA.InsertCardInfo(card); } }
public int InsertCardInfo(CardInfo card) { int rowAffected = 0; using(CardInfoDA cardInfoDA = new CardInfoDA()) { rowAffected = cardInfoDA.InsertCardInfo(card); } return rowAffected; }