public int UpdateInvoice(BMS_DAL.DS.BMSDS.TInvoicesDataTable dt) { int r = 0; if (dt.GetChanges() != null) { using (BMS_DAL.DS.BMSDSTableAdapters.TInvoicesTableAdapter ta = new BMS_DAL.DS.BMSDSTableAdapters.TInvoicesTableAdapter()) { r = ta.UpdateWithTrans(dt); } } return(r); }