private static int InsertUpdateDelete(HoaDonInfo hoaDonInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_HoaDon, "@" + TableHoaDon.SoHoaDon, hoaDonInfo.SoHoaDon, hoaDonInfo.MaNV, hoaDonInfo.MaKH, hoaDonInfo.NgayLap, hoaDonInfo.TongTien, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(HoaDonInfo hoaDonInfo) { return(InsertUpdateDelete(hoaDonInfo, DataProviderAction.Delete)); }